Skip to content

Commit a8184e3

Browse files
committed
Fix a check on pushref
Empty pushref is no longer given 9b5eb82
1 parent 8300c52 commit a8184e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/auto-style.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ruby
22
# Usage:
3-
# auto-style.rb [oldrev] [newrev] [pushref]
3+
# auto-style.rb oldrev newrev [pushref]
44

55
require 'shellwords'
66
require 'tmpdir'
@@ -251,7 +251,7 @@ def adjust_styles(files)
251251
_, *updated_files = ARGV
252252
git = Git.new(nil, nil)
253253
else
254-
unless dry_run = pushref.empty?
254+
unless dry_run = pushref.nil?
255255
branch = IO.popen(['git', 'rev-parse', '--symbolic', '--abbrev-ref', pushref], &:read).strip
256256
end
257257
git = Git.new(oldrev, newrev, branch)

0 commit comments

Comments
 (0)