Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Show friendly errors when ref is not found #3965

Merged
merged 1 commit into from
Aug 27, 2015
Merged

Show friendly errors when ref is not found #3965

merged 1 commit into from
Aug 27, 2015

Commits on Aug 26, 2015

  1. Show friendly errors when ref is not found

    Before:
    
        $ bundle install
        Fetching git://github.com/agis-/some_gem.git
        fatal: ambiguous argument 'FOO': unknown revision or path not in the working tree.
        Use '--' to separate paths from revisions, like this:
        'git  [...] -- [...]'
        Git error: command `git rev-parse WRONG` in directory /cache/path
        has failed.
        Ref 'foo' was not found. Perhaps you mispelled it?
        If this error persists you could try removing the cache directory
        # ...
    
    After:
    
        $ bundle install
        Fetching git://github.com/agis-/some_gem.git
        fatal: Needed a single revision
        Git error: command `git rev-parse --verify WRONG` in directory /cache/path
        has failed.
        Ref 'foo' was not found. Perhaps you mispelled it?
        If this error persists you could try removing the cache directory
        # ...
    
    Closes #3897.
    agis committed Aug 26, 2015
    Configuration menu
    Copy the full SHA
    b8da6a9 View commit details
    Browse the repository at this point in the history