Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Unpacking "git --version" can throw a ValueError #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

choey
Copy link

@choey choey commented May 23, 2012

git --version can return a 4-part message like this:
git version 1.2.3.4 (Apple Git-26)

This breaks the unpacking. It is more reliable to assume that the version part is the 3rd group than assuming that there are exactly 3 groups and the version is the 3rd group.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant