summaryrefslogtreecommitdiff
path: root/receive-pack.c
diff options
context:
space:
mode:
authorJason Riedy <ejr@cs.berkeley.edu>2005-08-23 13:52:01 -0700
committerJason Riedy <ejr@cs.berkeley.edu>2005-08-23 20:41:12 -0700
commite72a7d45dc67afa1328750d401ddd4dbeb2131d9 (patch)
tree72db691c81402c4e498a9236eeb3c316dbf0b1eb /receive-pack.c
parent3cd6ecda4a02e943934885910feeba957b730123 (diff)
downloadgit-e72a7d45dc67afa1328750d401ddd4dbeb2131d9.tar.gz
Replace unsetenv() and setenv() with older putenv().
Solaris 8 doesn't have the newer unsetenv() and setenv() functions, so replace them with putenv(). The one use of unsetenv() in fsck-cache.c now sets GIT_ALTERNATE_OBJECT_ DIRECTORIES to the empty string. Every place that var is used, NULLs are also replaced with empty strings, so it's ok. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Diffstat (limited to 'receive-pack.c')
-rw-r--r--receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/receive-pack.c b/receive-pack.c
index 3a1b2ab694..1ef0c13935 100644
--- 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);