Skip to content

Commit

Permalink
Handle modify/delete conflict if there is other output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmansour committed Apr 20, 2022
1 parent 9349e3c commit 1c5fcbb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nbgitpuller/pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,13 @@ def merge(self):
yield line

except subprocess.CalledProcessError as exc:
for line in exc.output.decode().splitlines():
lines = exc.output.decode().splitlines()
for line in lines:
yield line

if exc.output.decode().startswith("CONFLICT (modify/delete)"):
raise ModifyDeleteConflict() from exc
for line in lines:
if line.startswith("CONFLICT (modify/delete)"):
raise ModifyDeleteConflict() from exc
raise

def commit_all(self):
Expand Down

0 comments on commit 1c5fcbb

Please sign in to comment.