diff options
Diffstat (limited to 'lib/bundler/source/git.rb')
-rw-r--r-- | lib/bundler/source/git.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb index c18341d17e..3a75299ff8 100644 --- a/lib/bundler/source/git.rb +++ b/lib/bundler/source/git.rb @@ -65,7 +65,14 @@ module Bundler else ref end - "#{uri} (at #{at})" + + rev = begin + "@#{shortref_for_display(revision)}" + rescue GitError + nil + end + + "#{uri} (at #{at}#{rev})" end def name |