diff options
author | Santi_Béjar <sbejar@gmail.com> | 2005-10-05 18:58:10 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-05 11:23:23 -0700 |
commit | df34297af1fe5da786e41bd2fee58e10dd810cc4 (patch) | |
tree | dc721a63b8221995616e3013de11e71d94da01ef /git-fetch.sh | |
parent | 85912b06734286108d0ec33f0479677e2fce252d (diff) | |
download | git-df34297af1fe5da786e41bd2fee58e10dd810cc4.tar.gz git-df34297af1fe5da786e41bd2fee58e10dd810cc4.tar.xz |
[PATCH] Quote the missing GIT_DIR.
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index 61da6a9e3..d3988660f 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -49,7 +49,7 @@ rsync_slurped_objects= if test "" = "$append" then - : >$GIT_DIR/FETCH_HEAD + : >"$GIT_DIR/FETCH_HEAD" fi append_fetch_head () { @@ -86,11 +86,11 @@ append_fetch_head () { if git-cat-file commit "$head_" >/dev/null 2>&1 then headc_=$(git-rev-parse --verify "$head_^0") || exit - echo "$headc_ $not_for_merge_ $note_" >>$GIT_DIR/FETCH_HEAD + echo "$headc_ $not_for_merge_ $note_" >>"$GIT_DIR/FETCH_HEAD" echo >&2 "* committish: $head_" echo >&2 " $note_" else - echo "$head_ not-for-merge $note_" >>$GIT_DIR/FETCH_HEAD + echo "$head_ not-for-merge $note_" >>"$GIT_DIR/FETCH_HEAD" echo >&2 "* non-commit: $head_" echo >&2 " $note_" fi |