diff options
-rwxr-xr-x | tool/sync_default_gems.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index ec70b86752..4c3f5a6422 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -122,9 +122,10 @@ module SyncDefaultGems end def replace_rdoc_ref_all - result = pipe_readlines(%W"git status porcelain -z -- *.c *.rb *.rdoc") + result = pipe_readlines(%W"git status --porcelain -z -- *.c *.rb *.rdoc") result.map! {|line| line[/\A.M (.*)/, 1]} result.compact! + return if result.empty? result = pipe_readlines(%W"git grep -z -l -F [https://docs.ruby-lang.org/en/master/ --" + result) result.inject(false) {|changed, file| changed | replace_rdoc_ref(file)} end |