{"thread":{"id":"4582","subject":"[PATCH] repo-config: Fix late-night bug","startedAt":"2006-06-20T07:45:53Z","lastAt":"2006-06-20T07:45:53Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"22113","messageId":"Pine.LNX.4.63.0606200945140.26329@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"4582","inReplyTo":null,"subject":"[PATCH] repo-config: Fix late-night bug","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-06-20T07:45:53Z","receivedAt":"2006-06-20T07:45:53Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nThis bug was hidden by the \"future-proofing\" of the test. Sigh.\n\nWhen neither GIT_CONFIG nor GIT_CONFIG_LOCAL is set, do not use NULL,\nbut $GIT_DIR/config. Instead of using $GIT_DIR/config when only\nGIT_CONFIG_LOCAL is set. Sorry.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n---\n\n\tThis time, \"only\" repo-config was affected, _not_ all users of\n\tthe config file.\n\n repo-config.c |    2 --\n 1 files changed, 0 insertions(+), 2 deletions(-)\n\ndiff --git a/repo-config.c b/repo-config.c\nindex 03f108f..ab8f1af 100644\n--- a/repo-config.c\n+++ b/repo-config.c\n@@ -74,8 +74,6 @@ static int get_value(const char* key_, c\n \t\tconst char *home = getenv(\"HOME\");\n \t\tlocal = getenv(\"GIT_CONFIG_LOCAL\");\n \t\tif (!local)\n-\t\t\tlocal = repo_config;\n-\t\telse\n \t\t\tlocal = repo_config = strdup(git_path(\"config\"));\n \t\tif (home)\n \t\t\tglobal = strdup(mkpath(\"%s/.gitconfig\", home));\n-- \n1.4.0.g59268-dirty\n"}]}