{"thread":{"id":"2375","subject":"[PATCH] Allow GIT_DIR to be an absolute path","startedAt":"2005-11-06T23:36:15Z","lastAt":"2005-11-06T23:36:15Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"11229","messageId":"Pine.LNX.4.63.0511070034160.23992@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"2375","inReplyTo":null,"subject":"[PATCH] Allow GIT_DIR to be an absolute path","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2005-11-06T23:36:15Z","receivedAt":"2005-11-06T23:36:15Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nThis fixes a problem in safe_create_leading_directories() when the\nargument starts with a '/' (i.e. the path is absolute).\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\n---\n\n\tI did not thoroughly check if there are more places where a \n\trelative path is assumed. Could well be the only one.\n\n sha1_file.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\napplies-to: 8a2743d0d424a3bc0ff120cdba66ee20b59f5a56\ne1f7e03e178889c53367745810130ef3e933d2aa\ndiff --git a/sha1_file.c b/sha1_file.c\nindex 642f00d..544db4e 100644\n--- a/sha1_file.c\n+++ b/sha1_file.c\n@@ -50,7 +50,7 @@ int get_sha1_hex(const char *hex, unsign\n \n int safe_create_leading_directories(char *path)\n {\n-\tchar *pos = path;\n+\tchar *pos = path+1;\n \n \twhile (pos) {\n \t\tpos = strchr(pos, '/');\n---\n0.99.9.GIT\n"}]}