summaryrefslogtreecommitdiff
path: root/builtin-blame.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2006-11-15 22:52:25 +0100
committerJunio C Hamano <junkio@cox.net>2006-11-29 10:33:25 -0800
commit6bee4e408c097a4f0c4a091f13dacabe7c766025 (patch)
tree69dabe4b03cbcc3d9cb33938b883252df49dc286 /builtin-blame.c
parentab3bb800b46cf66249ead9e13c22cbc48d790c9a (diff)
downloadgit-6bee4e408c097a4f0c4a091f13dacabe7c766025.tar.gz
git-blame: fix rev parameter handling.
We lacked "--" termination in the underlying init_revisions() call which made it impossible to specify a revision that happens to have the same name as an existing file. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-blame.c')
-rw-r--r--builtin-blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-blame.c b/builtin-blame.c
index 53fed4501a..dc3ffeaff8 100644
--- a/builtin-blame.c
+++ b/builtin-blame.c
@@ -1787,6 +1787,7 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
/* Now we got rev and path. We do not want the path pruning
* but we may want "bottom" processing.
*/
+ argv[unk++] = "--"; /* terminate the rev name */
argv[unk] = NULL;
init_revisions(&revs, NULL);