summaryrefslogtreecommitdiff
path: root/bundle.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-11-02 13:36:14 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-11-02 13:36:14 -0800
commit581000a4196d196d221bb6164a49a8a52ce30730 (patch)
treed177274e6739292d466213fc02abf5811bf86ce6 /bundle.c
parentStart 1.6.0.4 cycle (diff)
parentEnhance hold_lock_file_for_{update,append}() API (diff)
downloadtgif-581000a4196d196d221bb6164a49a8a52ce30730.tar.xz
Merge branch 'jc/maint-co-track' into maint
* jc/maint-co-track: Enhance hold_lock_file_for_{update,append}() API demonstrate breakage of detached checkout with symbolic link HEAD Fix "checkout --track -b newbranch" on detached HEAD
Diffstat (limited to 'bundle.c')
-rw-r--r--bundle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundle.c b/bundle.c
index 00b2aabefc..7d17a1fde1 100644
--- a/bundle.c
+++ b/bundle.c
@@ -186,7 +186,8 @@ int create_bundle(struct bundle_header *header, const char *path,
if (bundle_to_stdout)
bundle_fd = 1;
else
- bundle_fd = hold_lock_file_for_update(&lock, path, 1);
+ bundle_fd = hold_lock_file_for_update(&lock, path,
+ LOCK_DIE_ON_ERROR);
/* write signature */
write_or_die(bundle_fd, bundle_signature, strlen(bundle_signature));