Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Exit with status code 2 if we get an exception.
[gitweb.git]
/
receive-pack.c
diff --git
a/receive-pack.c
b/receive-pack.c
index 9026f1bf828abdceb907054bf54ecfb7311df5e1..06857eb77fef93788f54d17cca68924f5213c9db 100644
(file)
--- a/
receive-pack.c
+++ b/
receive-pack.c
@@
-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);