@matheusbsbs / matheus-bagliano / commits / df34297af1
Fork 0

[PATCH] Quote the missing GIT_DIR.

Signed-off-by: Santi Béjar <sbejar@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Santi_Béjar committed Oct 5, 2005 at 18:58 UTC df34297af1fe5da786e41bd2fee58e10dd810cc4
2 files changed +4 -4
git-commit.sh
+1 -1
@@ -198,7 +198,7 @@ else
198 PARENTS=""
199 fi
200 git-status >>.editmsg
201 -if [ "$?" != "0" -a ! -f $GIT_DIR/MERGE_HEAD ]
201 +if [ "$?" != "0" -a ! -f "$GIT_DIR/MERGE_HEAD" ]
202 then
203 rm -f .editmsg
204 git-status
git-fetch.sh
+3 -3
@@ -49,7 +49,7 @@ rsync_slurped_objects=
49
50 if test "" = "$append"
51 then
52 - : >$GIT_DIR/FETCH_HEAD
52 + : >"$GIT_DIR/FETCH_HEAD"
53 fi
54
55 append_fetch_head () {
@@ -86,11 +86,11 @@ append_fetch_head () {
86 if git-cat-file commit "$head_" >/dev/null 2>&1
87 then
88 headc_=$(git-rev-parse --verify "$head_^0") || exit
89 - echo "$headc_ $not_for_merge_ $note_" >>$GIT_DIR/FETCH_HEAD
89 + echo "$headc_ $not_for_merge_ $note_" >>"$GIT_DIR/FETCH_HEAD"
90 echo >&2 "* committish: $head_"
91 echo >&2 " $note_"
92 else
93 - echo "$head_ not-for-merge $note_" >>$GIT_DIR/FETCH_HEAD
93 + echo "$head_ not-for-merge $note_" >>"$GIT_DIR/FETCH_HEAD"
94 echo >&2 "* non-commit: $head_"
95 echo >&2 " $note_"
96 fi