diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-10 11:58:30 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:56 +0900 |
commit | 4b1395ab4ae7b6b9e22362ccb08d103bdec744f4 (patch) | |
tree | c8d699bba2a01d7b54be6d7a00a5465aaeec2159 /spec/bundler/bundler/source/git | |
parent | e405aede09c090c7356bd2986793e0328f498e04 (diff) |
[bundler/bundler] Clearer MissingRevision git errors
https://github.com/bundler/bundler/commit/b47d23edf5
Diffstat (limited to 'spec/bundler/bundler/source/git')
-rw-r--r-- | spec/bundler/bundler/source/git/git_proxy_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/bundler/bundler/source/git/git_proxy_spec.rb b/spec/bundler/bundler/source/git/git_proxy_spec.rb index 016105ccde..8ac0ae4dd0 100644 --- a/spec/bundler/bundler/source/git/git_proxy_spec.rb +++ b/spec/bundler/bundler/source/git/git_proxy_spec.rb @@ -136,8 +136,11 @@ RSpec.describe Bundler::Source::Git::GitProxy do expect(subject).not_to receive(:git) expect { subject.copy_to(destination, submodules) }. - to raise_error(Bundler::Source::Git::MissingGitRevisionError, - "Revision #{revision} does not exist in the repository #{uri}. Maybe you misspelled it?") + to raise_error( + Bundler::Source::Git::MissingGitRevisionError, + "Git error: command `git command` in directory #{destination} has failed.\n" \ + "Revision #{revision} does not exist in the repository #{uri}. Maybe you misspelled it?" \ + ) end end end |