Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Teach fsck and prune about the new location of temporary objects
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index 6c6e9e5e1963e74307266b432e58a5fe51a9ce39..39a3b23804d2da715c564459bf320be23d41c1bf 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-925,7
+925,7
@@
int delete_ref(const char *refname, const unsigned char *sha1)
i = strlen(lock->lk->filename) - 5; /* .lock */
lock->lk->filename[i] = 0;
err = unlink(lock->lk->filename);
- if (err) {
+ if (err
&& errno != ENOENT
) {
ret = 1;
error("unlink(%s) failed: %s",
lock->lk->filename, strerror(errno));