Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Catch failures from t5540-http-push
[gitweb.git]
/
builtin-mv.c
diff --git
a/builtin-mv.c
b/builtin-mv.c
index 3edebef45f9220a7a76ad987debea73612350927..5530e11b89c2c05c95c8ab1e82999eec0fdcc4c5 100644
(file)
--- a/
builtin-mv.c
+++ b/
builtin-mv.c
@@
-256,7
+256,8
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
for (i = 0; i < added.nr; i++) {
const char *path = added.items[i].path;
- add_file_to_cache(path, verbose);
+ if (add_file_to_cache(path, verbose ? ADD_CACHE_VERBOSE : 0))
+ die("updating index entries failed");
}
for (i = 0; i < deleted.nr; i++)