chiark / gitweb /
Add support for branch in the patch id
[stgit] / stgit / git.py
index cc0ae79bf3e132a02a1c223f2dbd0254b9d3d8aa..a45671b2f1d9e0c9ec7e823eb99d9d2f6328beb3 100644 (file)
@@ -236,7 +236,7 @@ def __set_head(val):
 def rev_parse(git_id):
     """Parse the string and return an SHA1 id
     """
-    _output(['git-rev-parse', git_id])
+    return _output(['git-rev-parse', git_id]).strip()
 
 def add(names):
     """Add the files or recursively add the directory contents