Skip to content

Commit 34e95ac

Browse files
committed
fix issue
1 parent b16d380 commit 34e95ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dsutil/docker/builder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,12 +443,11 @@ def _compare_git_branches(path: str, b1: str, b2: str) -> bool:
443443
:param b2: Another branches.
444444
:return: True if there are no differences between the 2 branches and false otherwise.
445445
"""
446-
repo = git.Repo(path)
447446
logger.debug("Comparing branches {} and {} of the local repo {}", b1, b2, path)
448447
if b1 == b2:
449448
return True
450449
cmd = f"git -C {path} diff {b1}..{b2} -- ':(exclude)test' ':(exclude)tests'"
451-
diff = sp.run(cmd, shell=True, check=True, capture_output=True)
450+
diff = sp.run(cmd, shell=True, check=True, capture_output=True).stdout
452451
return not diff
453452

454453
def _add_root_node(self, node) -> Node:

0 commit comments

Comments
 (0)