mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Fix issue 7 -- Don't raise InstallationError anymore to allow commit specific editable installs (git backend)
This commit is contained in:
parent
afc8797de9
commit
a8de40cac1
5
pip.py
5
pip.py
|
@ -3515,8 +3515,7 @@ class Git(VersionControl):
|
|||
if origin_rev in inverse_revisions:
|
||||
rev = inverse_revisions[origin_rev]
|
||||
else:
|
||||
raise InstallationError("Could not find a tag or branch '%s' in repository %s"
|
||||
% (rev, display_path(dest)))
|
||||
logger.warn("Could not find a tag or branch '%s', assuming commit." % rev)
|
||||
return [rev]
|
||||
|
||||
def switch(self, dest, url, rev_options):
|
||||
|
@ -3535,7 +3534,7 @@ class Git(VersionControl):
|
|||
url, rev = self.get_url_rev()
|
||||
if rev:
|
||||
rev_options = [rev]
|
||||
rev_display = ' (to revision %s)' % rev
|
||||
rev_display = ' (to %s)' % rev
|
||||
else:
|
||||
rev_options = ['origin/master']
|
||||
rev_display = ''
|
||||
|
|
Loading…
Reference in a new issue