]> asedeno.scripts.mit.edu Git - git.git/blobdiff - transport.c
Merge branch 'jk/no-no-no-empty-directory'
[git.git] / transport.c
index 8ad317bf32cf14ee1dee7c084d88a9ea57209da8..89d846e5c3d936739a13983728eaf97a1eb15932 100644 (file)
@@ -1069,7 +1069,7 @@ int transport_fetch_refs(struct transport *transport, const struct ref *refs)
 void transport_unlock_pack(struct transport *transport)
 {
        if (transport->pack_lockfile) {
-               unlink(transport->pack_lockfile);
+               unlink_or_warn(transport->pack_lockfile);
                free(transport->pack_lockfile);
                transport->pack_lockfile = NULL;
        }