Skip to content

Commit 74896f6

Browse files
more Ruby 1.9 -> 1.8 syntax
1 parent cd0c2b0 commit 74896f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def fetch(remote)
573573

574574
def push(remote, branch = 'master', opts = {})
575575
# Small hack to keep backwards compatibility with the 'push(remote, branch, tags)' method signature.
576-
opts = {tags: opts} if [true, false].include?(opts)
576+
opts = {:tags => opts} if [true, false].include?(opts)
577577

578578
arr_opts = []
579579
arr_opts << '--f' if opts[:force] || opts[:f]

0 commit comments

Comments
 (0)