* [PATCH 1/5] fetch-pack: Properly remove the shallow file when it becomes empty.
@ 2006-11-24 14:58 Alexandre Julliard
0 siblings, 0 replies; only message in thread
From: Alexandre Julliard @ 2006-11-24 14:58 UTC (permalink / raw)
To: git
The code was unlinking the lock file instead.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
fetch-pack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fetch-pack.c b/fetch-pack.c
index d00573d..bb310b6 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -700,7 +700,7 @@ int main(int argc, char **argv)
fd = hold_lock_file_for_update(&lock, shallow, 1);
if (!write_shallow_commits(fd, 0)) {
- unlink(lock.filename);
+ unlink(shallow);
rollback_lock_file(&lock);
} else {
close(fd);
--
1.4.4.1.ga335e
--
Alexandre Julliard
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-24 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24 14:58 [PATCH 1/5] fetch-pack: Properly remove the shallow file when it becomes empty Alexandre Julliard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).