Merge git://git.kernel.org/pub/scm/gitk/gitk
[gitweb.git] / builtin-fetch-pack.c
index fa3c936493cc0b139edf3e4e8154569f453afc02..372bfa20a2eac978f7511f5d8d9296be789b527f 100644 (file)
@@ -813,7 +813,8 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
                          )
                        die("shallow file was changed during fetch");
 
-               fd = hold_lock_file_for_update(&lock, shallow, 1);
+               fd = hold_lock_file_for_update(&lock, shallow,
+                                              LOCK_DIE_ON_ERROR);
                if (!write_shallow_commits(fd, 0)) {
                        unlink(shallow);
                        rollback_lock_file(&lock);