{"thread":{"id":"2022","subject":"[PATCH] Quote the missing GIT_DIR.","startedAt":"2005-10-05T16:58:10Z","lastAt":"2005-10-05T16:58:10Z","messageCount":1,"participants":["Santi Béjar"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"9715","messageId":"8764sbq4t9.fsf@gmail.com","threadId":"2022","inReplyTo":null,"subject":"[PATCH] Quote the missing GIT_DIR.","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2005-10-05T16:58:10Z","receivedAt":"2005-10-05T16:58:10Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\nSigned-off-by: Santi Béjar <sbejar@gmail.com>\n\n\n---\n\n git-commit.sh |    2 +-\n git-fetch.sh  |    6 +++---\n 2 files changed, 4 insertions(+), 4 deletions(-)\n\napplies-to: f1aeb5e1caeb925ef1f7dc9993096556d10b49a9\n9dbea220044374b801516e7d6b4ceb390c2cbd94\ndiff --git a/git-commit.sh b/git-commit.sh\n--- a/git-commit.sh\n+++ b/git-commit.sh\n@@ -198,7 +198,7 @@ else\n \tPARENTS=\"\"\n fi\n git-status >>\"$GIT_DIR\"/.editmsg\n-if [ \"$?\" != \"0\" -a ! -f $GIT_DIR/MERGE_HEAD ]\n+if [ \"$?\" != \"0\" -a ! -f \"$GIT_DIR/MERGE_HEAD\" ]\n then\n \trm -f \"$GIT_DIR\"/.editmsg\n \tgit-status\ndiff --git a/git-fetch.sh b/git-fetch.sh\n--- a/git-fetch.sh\n+++ b/git-fetch.sh\n@@ -49,7 +49,7 @@ rsync_slurped_objects=\n \n if test \"\" = \"$append\"\n then\n-\t: >$GIT_DIR/FETCH_HEAD\n+\t: >\"$GIT_DIR/FETCH_HEAD\"\n fi\n \n append_fetch_head () {\n@@ -86,11 +86,11 @@ append_fetch_head () {\n     if git-cat-file commit \"$head_\" >/dev/null 2>&1\n     then\n \theadc_=$(git-rev-parse --verify \"$head_^0\") || exit\n-\techo \"$headc_\t$not_for_merge_\t$note_\" >>$GIT_DIR/FETCH_HEAD\n+\techo \"$headc_\t$not_for_merge_\t$note_\" >>\"$GIT_DIR/FETCH_HEAD\"\n \techo >&2 \"* committish: $head_\"\n \techo >&2 \"  $note_\"\n     else\n-\techo \"$head_\tnot-for-merge\t$note_\" >>$GIT_DIR/FETCH_HEAD\n+\techo \"$head_\tnot-for-merge\t$note_\" >>\"$GIT_DIR/FETCH_HEAD\"\n \techo >&2 \"* non-commit: $head_\"\n \techo >&2 \"  $note_\"\n     fi\n---\n0.99.8.GIT\n"}]}