Skip to content

Commit 6bee4e4

Browse files
raalkmlJunio C Hamano
authored andcommitted
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 <[email protected]>
1 parent ab3bb80 commit 6bee4e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin-blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,7 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
17871787
/* Now we got rev and path. We do not want the path pruning
17881788
* but we may want "bottom" processing.
17891789
*/
1790+
argv[unk++] = "--"; /* terminate the rev name */
17901791
argv[unk] = NULL;
17911792

17921793
init_revisions(&revs, NULL);

0 commit comments

Comments
 (0)