Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
replace direct calls to unlink(2) with unlink_or_warn
[gitweb.git]
/
builtin-fetch-pack.c
diff --git
a/builtin-fetch-pack.c
b/builtin-fetch-pack.c
index 5d134be47c85019dd66aed742eb845f6245cbf4d..bd97cfd9bfdbc6bd25e5364ba84dad44059d2ac4 100644
(file)
--- a/
builtin-fetch-pack.c
+++ b/
builtin-fetch-pack.c
@@
-814,7
+814,7
@@
struct ref *fetch_pack(struct fetch_pack_args *my_args,
fd = hold_lock_file_for_update(&lock, shallow,
LOCK_DIE_ON_ERROR);
if (!write_shallow_commits(fd, 0)) {
- unlink(shallow);
+ unlink
_or_warn
(shallow);
rollback_lock_file(&lock);
} else {
commit_lock_file(&lock);