projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Make the git-fsck-objects diagnostics more useful
[git.git]
/
upload-pack.c
diff --git
a/upload-pack.c
b/upload-pack.c
index
95d3812
..
da10742
100644
(file)
--- a/
upload-pack.c
+++ b/
upload-pack.c
@@
-179,7
+179,7
@@
int main(int argc, char **argv)
chdir(".git");
if (access("objects", X_OK) || access("refs", X_OK))
die("git-upload-pack: %s doesn't seem to be a git archive", dir);
-
setenv("GIT_DIR", ".", 1
);
+
putenv("GIT_DIR=."
);
upload_pack();
return 0;
}