projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support custom build options in config.mak
[git.git]
/
receive-pack.c
diff --git
a/receive-pack.c
b/receive-pack.c
index
9026f1b
..
06857eb
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);