Skip to content

Commit 0636d3a

Browse files
committed
sync: Skip if no rebase needed
1 parent e8f1934 commit 0636d3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guw/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def _sync_at(self, tmpdir, backup, local, features, prev_feature, interactive):
185185
print(" paused to fix conflicts")
186186
input(" press a key when rebases ready and 'git rebase --continue' will be execute...")
187187
os.environ["GIT_EDITOR"] = "true"
188-
repo.git.rebase("--continue")
188+
try:
189+
repo.git.rebase("--continue")
190+
except git.exc.GitCommandError as e:
191+
logger.warning(f"`git rebase --continue` failed — possibly nothing to rebase. Error: {e}")
189192

190193
prev_active_feature = feature
191194
prev_feature = feature

0 commit comments

Comments
 (0)