Merge branch 'bw/ref-prefix-for-configured-refspec'
[gitweb.git] / builtin / describe.c
index a4160e7f5d1321e08be78f86d63b780a1711616f..cf1ae77d7c705cdfb34bdb5403bad8db4148eccf 100644 (file)
@@ -612,7 +612,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
                                suffix = broken;
                        }
                } else if (dirty) {
-                       static struct lock_file index_lock;
+                       struct lock_file index_lock = LOCK_INIT;
                        struct rev_info revs;
                        struct argv_array args = ARGV_ARRAY_INIT;
                        int fd, result;