Skip to content

Commit

Permalink
auxlib/packaging: Git hashes are not limited to 9 characters
Browse files Browse the repository at this point in the history
They are unlimited. https://git-scm.com/docs/git-describe states:
".. or as many digits as needed to form a unique object name."
  • Loading branch information
mingwandroid committed Jan 5, 2017
1 parent b7135d7 commit f409041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/_vendor/auxlib/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
Response = namedtuple('Response', ['stdout', 'stderr', 'rc'])
GIT_DESCRIBE_REGEX = compile(r"(?:[_-a-zA-Z]*)"
r"(?P<version>\d+\.\d+\.\d+)"
r"(?:-(?P<dev>\d+)-g(?P<hash>[0-9a-f]{7,9}))")
r"(?:-(?P<dev>\d+)-g(?P<hash>[0-9a-f]{7,}))")


def call(path, command, raise_on_error=True):
Expand Down

0 comments on commit f409041

Please sign in to comment.