Skip to content

Commit 5a3d68e

Browse files
authoredAug 11, 2024
Fix spec compatibility with recent git versions (sds#854)
The original array was defining the shellwords like this: `["git", "commit", "-m", "\"Resolve", "conflicts\"", "-i", "some-file"]` This combined with the most recent git version failed with: ``` error: pathspec 'conflicts"' did not match any file(s) known to git ``` This PR just simplifies the commit message to work with the %w array literal.
1 parent 5ff9d5e commit 5a3d68e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎spec/integration/resolving_cherry_pick_conflict_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'spec_helper'
44

55
describe 'resolving cherry-pick conflicts' do
6-
subject { shell(%w[git commit -m "Resolve conflicts" -i some-file]) }
6+
subject { shell(%w[git commit -m Test -i some-file]) }
77

88
let(:config) { <<-YML }
99
PreCommit:

‎spec/integration/resolving_merge_conflict_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'spec_helper'
44

55
describe 'resolving merge conflicts' do
6-
subject { shell(%w[git commit -m "Resolve conflicts" -i some-file]) }
6+
subject { shell(%w[git commit -m Test -i some-file]) }
77

88
around do |example|
99
repo do

0 commit comments

Comments
 (0)