mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Fix some failing Bundler tests with old Git.
Use the `git branch --list` rather than the `git branch -l` for better compatibility. Because the `git branch -l` is used to create a new branch in Git version < 2.20.0. https://github.com/rubygems/rubygems/commit/eac5be7d06
This commit is contained in:
parent
907fa88a76
commit
71f6711351
Notes:
git
2021-08-31 19:07:06 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ module Spec
|
|||
raise "You can't specify `master` as the branch" if branch == "master"
|
||||
escaped_branch = Shellwords.shellescape(branch)
|
||||
|
||||
if @context.git("branch -l #{escaped_branch}", libpath).empty?
|
||||
if @context.git("branch --list #{escaped_branch}", libpath).empty?
|
||||
@context.git("branch #{escaped_branch}", libpath)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue