summaryrefslogtreecommitdiff
path: root/builtin-mv.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-01-14 22:58:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-01-14 22:58:46 -0800
commitb32acd21d81ac792cf28d487b960a2f6bb0ef0e2 (patch)
tree0d12b7b48f2a42dda239f385c96f8fe880d2a065 /builtin-mv.c
parentUpdate 1.6.2 draft release notes (diff)
parentUpdate draft release notes to 1.6.1.1 (diff)
downloadtgif-b32acd21d81ac792cf28d487b960a2f6bb0ef0e2.tar.xz
Merge branch 'maint'
* maint: Update draft release notes to 1.6.1.1 Make t3411 executable fix handling of multiple untracked files for git mv -k add test cases for "git mv -k"
Diffstat (limited to 'builtin-mv.c')
-rw-r--r--builtin-mv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-mv.c b/builtin-mv.c
index 4f65b5ae9b..bce9959293 100644
--- a/builtin-mv.c
+++ b/builtin-mv.c
@@ -192,6 +192,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
memmove(destination + i,
destination + i + 1,
(argc - i) * sizeof(char *));
+ i--;
}
} else
die ("%s, source=%s, destination=%s",