Replace unsetenv() and setenv() with older putenv().
[git.git] / receive-pack.c
index 3a1b2ab..1ef0c13 100644 (file)
@@ -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);