X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=pack-refs.c;h=2c76fb181f64e10c65517224b0c09cb648db81ac;hb=544ddb045a4bd49da9ffc1d9da80bdc0d71b2518;hp=848d311c2b2c651dbb14893c260584f00c639357;hpb=585ad90c804a501415f03926c1ef67a34cb37cda;p=git.git diff --git a/pack-refs.c b/pack-refs.c index 848d311c2..2c76fb181 100644 --- a/pack-refs.c +++ b/pack-refs.c @@ -89,7 +89,8 @@ int pack_refs(unsigned int flags) memset(&cbdata, 0, sizeof(cbdata)); cbdata.flags = flags; - fd = hold_lock_file_for_update(&packed, git_path("packed-refs"), 1); + fd = hold_lock_file_for_update(&packed, git_path("packed-refs"), + LOCK_DIE_ON_ERROR); cbdata.refs_file = fdopen(fd, "w"); if (!cbdata.refs_file) die("unable to create ref-pack file structure (%s)",