Blame SOURCES/rubygem-bundler-2.2.22-fix-tests-for-old-git.patch

82909a
From eac5be7d065df09e4e9271cedfb7ddf148a29a15 Mon Sep 17 00:00:00 2001
82909a
From: Jun Aruga <jaruga@redhat.com>
82909a
Date: Tue, 17 Aug 2021 18:21:06 +0200
82909a
Subject: [PATCH] Fix some failing Bundler tests with old Git.
82909a
82909a
Use the `git branch --list` rather than the `git branch -l` for better
82909a
compatibility. Because the `git branch -l` is used to create a new branch in
82909a
Git version < 2.20.0.
82909a
---
82909a
 bundler/spec/support/builders.rb | 2 +-
82909a
 1 file changed, 1 insertion(+), 1 deletion(-)
82909a
82909a
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
82909a
index 25377d2ac284..10beba1288dd 100644
82909a
--- a/spec/bundler/support/builders.rb
82909a
+++ b/spec/bundler/support/builders.rb
82909a
@@ -554,7 +554,7 @@ def _build(options)
82909a
           raise "You can't specify `master` as the branch" if branch == "master"
82909a
           escaped_branch = Shellwords.shellescape(branch)
82909a
 
82909a
-          if @context.git("branch -l #{escaped_branch}", libpath).empty?
82909a
+          if @context.git("branch --list #{escaped_branch}", libpath).empty?
82909a
             @context.git("branch #{escaped_branch}", libpath)
82909a
           end
82909a