From ef571976ec966d675b18c6c076e6d090b543e6e7 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Wed, 27 Jul 2005 11:04:32 +0100 Subject: [PATCH] Allow the GIT ids to be more flexible The current implementation does not allow hash values or other *HEAD names to be passed to the 'diff' command. Signed-off-by: Catalin Marinas --- stgit/commands/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stgit/commands/common.py b/stgit/commands/common.py index 293bd2e..db0466d 100644 --- a/stgit/commands/common.py +++ b/stgit/commands/common.py @@ -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 == '': -- 2.11.0