]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/git.py
Add version detection.
[wizard.git] / wizard / git.py
index aaea68ddb070a7bf15f2d086ad7dca0a66e1d9c9..858ed6b636ee14725ce1830504e6d8b35ca09cc3 100644 (file)
@@ -6,5 +6,5 @@ from wizard import shell
 
 def describe():
     """Finds the output of git describe --tags of the current directory."""
-    return shell.Shell().safeCall("git", "describe", "--tags")[0].rstrip()
+    return shell.Shell().safeCall("git", "describe", "--tags", strip=True)