diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-29 08:02:01 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-29 08:02:01 +0200 |
commit | 10d781b9caa4f71495c7b34963bef137216f86a8 (patch) | |
tree | eec73f3aec2ea1255bb3e131bd54e0a04e64d0f2 /receive-pack.c | |
parent | [PATCH] tutorial note about git branch (diff) | |
parent | Replace C99 array initializers with code. (diff) | |
download | git-10d781b9caa4f71495c7b34963bef137216f86a8.tar.xz git-10d781b9caa4f71495c7b34963bef137216f86a8.zip |
Merge refs/heads/portable from http://www.cs.berkeley.edu/~ejr/gits/git.git
Diffstat (limited to 'receive-pack.c')
-rw-r--r-- | receive-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/receive-pack.c b/receive-pack.c index 9026f1bf82..1ef0c13935 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -24,7 +24,7 @@ struct command { 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; @@ -269,7 +269,7 @@ int main(int argc, char **argv) /* 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); |