Add support for git-rev-parse
[stgit] / stgit / commands / common.py
index c6d4535..eacae95 100644 (file)
@@ -56,7 +56,7 @@ def git_id(string, strict = False):
 
         # maybe GIT knows more about this id
         if not strict:
-            return git_id
+            return git.rev_parse(git_id)
     elif len(string_list) == 2:
         patch_name = string_list[0]
         if patch_name == '':