Skip to content

Instantly share code, notes, and snippets.

@hltbra
Created August 2, 2011 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hltbra/1120276 to your computer and use it in GitHub Desktop.
Save hltbra/1120276 to your computer and use it in GitHub Desktop.
centralniak_patch_to_pip_issue_52
# 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