Merge branch 'ag/rebase-p'
[gitweb.git] / bundle.c
index 00ada05f46c80c959253b418bc25a40478721654..ba18e25d028001fd17b4807536ec2db3cd7a8b3d 100644 (file)
--- a/bundle.c
+++ b/bundle.c
@@ -410,7 +410,7 @@ static int write_bundle_refs(int bundle_fd, struct rev_info *revs)
 int create_bundle(struct bundle_header *header, const char *path,
                  int argc, const char **argv)
 {
-       static struct lock_file lock;
+       struct lock_file lock = LOCK_INIT;
        int bundle_fd = -1;
        int bundle_to_stdout;
        int ref_count = 0;