{"thread":{"id":"5641","subject":"[PATCH] Fix git-update-index --again","startedAt":"2006-09-21T21:29:59Z","lastAt":"2006-09-21T21:29:59Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"27387","messageId":"Pine.LNX.4.63.0609212329310.19042@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"5641","inReplyTo":null,"subject":"[PATCH] Fix git-update-index --again","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-09-21T21:29:59Z","receivedAt":"2006-09-21T21:29:59Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nIt called read_ref(git_path(..)..), where read_ref does the git_path()\nstuff itself.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n---\n builtin-update-index.c |    6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/builtin-update-index.c b/builtin-update-index.c\nindex 0620e77..09214c8 100644\n--- a/builtin-update-index.c\n+++ b/builtin-update-index.c\n@@ -404,9 +404,9 @@ static int unresolve_one(const char *pat\n \n static void read_head_pointers(void)\n {\n-\tif (read_ref(git_path(\"HEAD\"), head_sha1))\n+\tif (read_ref(\"HEAD\", head_sha1))\n \t\tdie(\"No HEAD -- no initial commit yet?\\n\");\n-\tif (read_ref(git_path(\"MERGE_HEAD\"), merge_head_sha1)) {\n+\tif (read_ref(\"MERGE_HEAD\", merge_head_sha1)) {\n \t\tfprintf(stderr, \"Not in the middle of a merge.\\n\");\n \t\texit(0);\n \t}\n@@ -443,7 +443,7 @@ static int do_reupdate(int ac, const cha\n \tint has_head = 1;\n \tconst char **pathspec = get_pathspec(prefix, av + 1);\n \n-\tif (read_ref(git_path(\"HEAD\"), head_sha1))\n+\tif (read_ref(\"HEAD\", head_sha1))\n \t\t/* If there is no HEAD, that means it is an initial\n \t\t * commit.  Update everything in the index.\n \t\t */\n-- \n1.4.2.1.ge488\n"}]}