Skip to content

Commit 40d1603

Browse files
committed
[ruby/io-console] Skip emptied commits
ruby/io-console@431c3f3369
1 parent 78dbc6c commit 40d1603

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tool/sync_default_gems.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,14 @@ 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 true
632+
end
633+
629634
# Commit cherry-picked commit
630635
if picked
631636
system(*%w"git commit --amend --no-edit")
632-
elsif porcelain_status().empty?
633-
system(*%w"git cherry-pick --skip")
634637
else
635638
system(*%w"git cherry-pick --continue --no-edit")
636639
end or return nil

0 commit comments

Comments
 (0)