X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=path.c;h=6395cf23098841c16d993ae7e86b2d8dcff01cd7;hb=fed820ad5662d8b6f11b5e7f788fa87afe1ad919;hp=c5d25a4b903bd92930df4004d30d4dffa6054456;hpb=b4d2b04c9b6dc42c0bcf0513b9d8f731ec26db82;p=git.git diff --git a/path.c b/path.c index c5d25a4b9..6395cf230 100644 --- a/path.c +++ b/path.c @@ -252,7 +252,7 @@ char *enter_repo(char *path, int strict) if (access("objects", X_OK) == 0 && access("refs", X_OK) == 0 && validate_headref("HEAD") == 0) { - putenv("GIT_DIR=."); + setenv("GIT_DIR", ".", 1); check_repository_format(); return path; }