Created
August 2, 2011 14:16
-
-
Save hltbra/1120276 to your computer and use it in GitHub Desktop.
centralniak_patch_to_pip_issue_52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch -- Bitbucket.org | |
# Project pip | |
# URL https://bitbucket.org/centralniak/pip/overview | |
# User Piotr Kilczuk <p.kilczuk@stylesheet.pl> | |
# Date 1284562027 -7200 | |
# Node ID 0271386efe0bf178bf99a96f370127e8d8899577 | |
# Parent 2abe82ba88d3bba17199c5b04ef2ea4b14040a92 | |
Probably fixes issue #143 | |
--- a/pip/vcs/__init__.py | |
+++ b/pip/vcs/__init__.py | |
@@ -122,8 +122,10 @@ class VersionControl(object): | |
scheme, netloc, path, query, frag = urlparse.urlsplit(url) | |
rev = None | |
if '@' in path: | |
path, rev = path.rsplit('@', 1) | |
+ if '#' in rev: | |
+ rev = rev.split('#')[0] | |
url = urlparse.urlunsplit((scheme, netloc, path, query, '')) | |
return url, rev | |
def get_info(self, location): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment