From 4e640155941b942d486c10aefe38449e1d8fd34e Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Sat, 1 Dec 2018 22:49:07 +1100 Subject: [PATCH] fix macOS git version detection --- git_archive_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_archive_all.py b/git_archive_all.py index 2242c85..9a3f3a1 100755 --- a/git_archive_all.py +++ b/git_archive_all.py @@ -468,7 +468,7 @@ def get_git_version(cls): return None try: - version = output.split()[-1] + version = output.split()[2] except IndexError: cls.LOG.warning("Unable to parse Git version \"%s\".", output) return None