Skip to content

Commit 7089a4e

Browse files
committed
Fix not to skip necessary commits
1 parent c951e1c commit 7089a4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tool/sync_default_gems.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,12 @@ def pickup_commit(gem, sha, edit)
626626
return picked || nil # Fail unless cherry-picked
627627
end
628628

629-
if porcelain_status().empty?
630-
system(*%w"git cherry-pick --skip")
631-
return false
632-
end
633-
634629
# Commit cherry-picked commit
635630
if picked
636631
system(*%w"git commit --amend --no-edit")
632+
elsif porcelain_status().empty?
633+
system(*%w"git cherry-pick --skip")
634+
return false
637635
else
638636
system(*%w"git cherry-pick --continue --no-edit")
639637
end or return nil

0 commit comments

Comments
 (0)