Skip to content

Commit e0264cf

Browse files
authored
Merge pull request #24 from fluendo/fix-no-rebase
sync: Skip if no rebase needed
2 parents e8f1934 + 0636d3a commit e0264cf

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)