summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-03 16:18:09 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-03 16:18:09 +0100
commit31a5e080c9424a9b024c8f5cb89e3dbb29a71a55 (patch)
tree4df45758e1a1c390bcce4d6758e45fbd1dbf91af
parenteeb5722f24e8868cbbf3687cc772254ac65d19df (diff)
downloadbundler-31a5e080c9424a9b024c8f5cb89e3dbb29a71a55.tar.gz
Use double quotes for `git commit -m`windows_friendly_git
Apparently single quotes don't work on Windows, and this also makes our code more consistent.
-rw-r--r--spec/install/gemfile/git_spec.rb8
-rw-r--r--spec/support/builders.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/install/gemfile/git_spec.rb b/spec/install/gemfile/git_spec.rb
index aa19fa1ce0..cac571754c 100644
--- a/spec/install/gemfile/git_spec.rb
+++ b/spec/install/gemfile/git_spec.rb
@@ -221,7 +221,7 @@ RSpec.describe "bundle install with git sources" do
end
Dir.chdir(lib_path("foo-1.0")) do
- `git update-ref -m 'Bundler Spec!' refs/bundler/1 master~1`
+ `git update-ref -m "Bundler Spec!" refs/bundler/1 master~1`
end
# want to ensure we don't fallback to HEAD
@@ -257,7 +257,7 @@ RSpec.describe "bundle install with git sources" do
end
Dir.chdir(lib_path("foo-1.0")) do
- `git update-ref -m 'Bundler Spec!' refs/bundler/1 master~1`
+ `git update-ref -m "Bundler Spec!" refs/bundler/1 master~1`
end
# want to ensure we don't fallback to HEAD
@@ -282,7 +282,7 @@ RSpec.describe "bundle install with git sources" do
it "does not download random non-head refs" do
Dir.chdir(lib_path("foo-1.0")) do
- sys_exec!("git update-ref -m 'Bundler Spec!' refs/bundler/1 master~1")
+ sys_exec!('git update-ref -m "Bundler Spec!" refs/bundler/1 master~1')
end
bundle! "config global_gem_cache true"
@@ -1163,7 +1163,7 @@ RSpec.describe "bundle install with git sources" do
void Init_foo() { rb_define_global_function("foo", &foo, 0); }
C
end
- `git commit -m 'commit for iteration #{i}' ext/foo.c`
+ `git commit -m "commit for iteration #{i}" ext/foo.c`
end
git_commit_sha = git_reader.ref_for("HEAD")
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index 442623a415..33a81f6f65 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -649,7 +649,7 @@ module Spec
`git config user.email "lol@wut.com"`
`git config user.name "lolwut"`
`git config commit.gpgsign false`
- `git commit -m 'OMG INITIAL COMMIT'`
+ `git commit -m "OMG INITIAL COMMIT"`
end
end
end