{"thread":{"id":"43717","subject":"[PATCH 1/5] fetch-pack: Properly remove the shallow file when it becomes empty.","startedAt":"2006-11-24T14:58:04Z","lastAt":"2006-11-24T14:58:04Z","messageCount":1,"participants":["Alexandre Julliard"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"297300","messageId":"871wnsvqmb.fsf@wine.dyndns.org","threadId":"43717","inReplyTo":null,"subject":"[PATCH 1/5] fetch-pack: Properly remove the shallow file when it becomes empty.","fromName":"Alexandre Julliard","fromEmail":"julliard@winehq.org","sentAt":"2006-11-24T14:58:04Z","receivedAt":"2006-11-24T14:58:04Z","isPatch":true,"sender":{"key":"julliard@winehq.org","avatar":null},"body":"The code was unlinking the lock file instead.\n\nSigned-off-by: Alexandre Julliard <julliard@winehq.org>\n---\n fetch-pack.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/fetch-pack.c b/fetch-pack.c\nindex d00573d..bb310b6 100644\n--- a/fetch-pack.c\n+++ b/fetch-pack.c\n@@ -700,7 +700,7 @@ int main(int argc, char **argv)\n \n \t\tfd = hold_lock_file_for_update(&lock, shallow, 1);\n \t\tif (!write_shallow_commits(fd, 0)) {\n-\t\t\tunlink(lock.filename);\n+\t\t\tunlink(shallow);\n \t\t\trollback_lock_file(&lock);\n \t\t} else {\n \t\t\tclose(fd);\n-- \n1.4.4.1.ga335e\n\n-- \nAlexandre Julliard\n"}]}