aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fetch-pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index c527bf9e9..1530a9479 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -625,6 +625,8 @@ static int remove_duplicates(int nr_heads, char **heads)
return dst;
}
+static struct lock_file lock;
+
int main(int argc, char **argv)
{
int i, ret, nr_heads;
@@ -632,7 +634,6 @@ int main(int argc, char **argv)
int fd[2];
pid_t pid;
struct stat st;
- struct lock_file lock;
setup_git_directory();