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 <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karsten Blees committed Nov 14, 2013 at 20:23 UTC e837af61345344448346afef79d53a5ff95bb0b3
1 file changed +1 -1
builtin/update-index.c
+1 -1
@@ -579,7 +579,7 @@ static int do_reupdate(int ac, const char **av,
579 * or worse yet 'allow_replace', active_nr may decrease.
580 */
581 save_nr = active_nr;
582 - update_one(ce->name + prefix_length, prefix, prefix_length);
582 + update_one(ce->name, NULL, 0);
583 if (save_nr != active_nr)
584 goto redo;
585 }