OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc9329
)
repack: improve warnings about failure of renaming and removing files
author
Stefan Beller
<stefanbeller@googlemail.com>
Sun, 15 Sep 2013 15:33:22 +0000
(17:33 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Sep 2013 20:34:57 +0000
(13:34 -0700)
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c
patch
|
blob
|
history
diff --git
a/builtin/repack.c
b/builtin/repack.c
index
9f4c782
..
a0ff5c7
100644
(file)
--- 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);
}
}