Skip to content

Commit f7554ef

Browse files
committed
sync/git(fix[update_repo]): Return result on stash-save failure
why: Stash-save error handler was missing return statement, allowing checkout/rebase to proceed with unstashed changes and stash.pop() to fail on a non-existent stash. what: - Add return result after stash-save error recording
1 parent 6abe67b commit f7554ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libvcs/sync/git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ def update_repo(
506506
except exc.CommandError as e:
507507
self.log.exception("Failed to stash changes")
508508
result.add_error("stash-save", str(e), exception=e)
509+
return result
509510

510511
# Checkout the remote branch
511512
try:

0 commit comments

Comments
 (0)