Skip to content

Commit e837af6

Browse files
kbleesgitster
authored andcommitted
fix 'git update-index --verbose --again' output
'git update-index --verbose' consistently reports paths relative to the work-tree root. The only exception is the '--again' option, which reports paths relative to the current working directory. Change do_reupdate to use non-prefixed paths. Signed-off-by: Karsten Blees <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent efc6842 commit e837af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/update-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ static int do_reupdate(int ac, const char **av,
579579
* or worse yet 'allow_replace', active_nr may decrease.
580580
*/
581581
save_nr = active_nr;
582-
update_one(ce->name + prefix_length, prefix, prefix_length);
582+
update_one(ce->name, NULL, 0);
583583
if (save_nr != active_nr)
584584
goto redo;
585585
}

0 commit comments

Comments
 (0)