Skip to content

Commit 935bded

Browse files
Merge pull request ruby-git#127 from bsedat/git-push-force
Send full force flag to git push
2 parents b4f6090 + c293389 commit 935bded

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
@@ -616,7 +616,7 @@ def push(remote, branch = 'master', opts = {})
616616
opts = {:tags => opts} if [true, false].include?(opts)
617617

618618
arr_opts = []
619-
arr_opts << '--f' if opts[:force] || opts[:f]
619+
arr_opts << '--force' if opts[:force] || opts[:f]
620620
arr_opts << remote
621621

622622
command('push', arr_opts + [branch])

0 commit comments

Comments
 (0)