Skip to content

Commit

Permalink
Keep different code in custom branch in dummy repo
Browse files Browse the repository at this point in the history
This doesn't affect the outcome of the test, but it makes the `git
commit` command inside `update_git` not fail because of not having
anything to commit.
  • Loading branch information
deivid-rodriguez committed Oct 8, 2021
1 parent c889f1d commit ad0160e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/spec/install/gemfile/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@

# want to ensure we don't fallback to HEAD
update_git "foo", :path => lib_path("foo-1.0"), :branch => "rando" do |s|
s.write("lib/foo.rb", "raise 'FAIL'")
s.write("lib/foo.rb", "raise 'FAIL_FROM_RANDO'")
end

install_gemfile <<-G
Expand Down Expand Up @@ -268,7 +268,7 @@

# want to ensure we don't fallback to HEAD
update_git "foo", :path => lib_path("foo-1.0"), :branch => "rando" do |s|
s.write("lib/foo.rb", "raise 'FAIL'")
s.write("lib/foo.rb", "raise 'FAIL_FROM_RANDO'")
end

install_gemfile <<-G
Expand Down

0 comments on commit ad0160e

Please sign in to comment.