diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-09-15 17:33:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-17 13:34:57 -0700 |
commit | 0b63c6a5b78f3fdd8c4e4fed4e535e7f4eed4257 (patch) | |
tree | 795f0d057feaa5a2828d883c0e0aea90ce3768b5 /builtin | |
parent | ffc9329f48cb05ab44592e75e2dac4cfb7951c00 (diff) | |
download | git-0b63c6a5b78f3fdd8c4e4fed4e535e7f4eed4257.tar.gz |
repack: improve warnings about failure of renaming and removing files
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/repack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/repack.c b/builtin/repack.c index 9f4c782d43..a0ff5c704f 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -327,7 +327,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix) chmod(fname_old, statbuffer.st_mode); } if (rename(fname_old, fname)) - exit(errno); + die_errno(_("renaming '%s' failed"), fname_old); free(fname); free(fname_old); } @@ -341,7 +341,8 @@ int cmd_repack(int argc, const char **argv, const char *prefix) packdir, item->string, exts[ext]); - remove_path(fname); + if (remove_path(fname)) + warning(_("removing '%s' failed"), fname); } } |