diff --git a/receive-pack.c b/receive-pack.c
index 9026f1bf828abdceb907054bf54ecfb7311df5e1..1ef0c13935751903efc5c2dee738604a80b75de2 100644 (file)
--- a/receive-pack.c
+++ b/receive-pack.c
unsigned char updated;
unsigned char old_sha1[20];
unsigned char new_sha1[20];
- char ref_name[0];
+ char ref_name[];
};
static struct command *commands = NULL;
/* If we have a ".git" directory, chdir to it */
chdir(".git");
- setenv("GIT_DIR", ".", 1);
+ putenv("GIT_DIR=.");
if (access("objects", X_OK) < 0 || access("refs/heads", X_OK) < 0)
die("%s doesn't appear to be a git directory", dir);