Allow the GIT ids to be more flexible
authorCatalin Marinas <catalin.marinas@gmail.com>
Wed, 27 Jul 2005 10:04:32 +0000 (11:04 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 27 Jul 2005 10:04:32 +0000 (11:04 +0100)
The current implementation does not allow hash values or other *HEAD
names to be passed to the 'diff' command.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/common.py

index 293bd2e..db0466d 100644 (file)
@@ -53,6 +53,9 @@ def git_id(string):
             id_file = os.path.join(path, git_id)
             if os.path.isfile(id_file):
                 return read_string(id_file)
+
+        # maybe GIT know more about this id
+        return git_id
     elif len(string_list) == 2:
         patch_name = string_list[0]
         if patch_name == '':