Skip to content

Commit

Permalink
[PATCH] Quote the missing GIT_DIR.
Browse files Browse the repository at this point in the history
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Santi_Béjar authored and Junio C Hamano committed Oct 5, 2005
1 parent 85912b0 commit df34297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion git-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ else
PARENTS=""
fi
git-status >>.editmsg
if [ "$?" != "0" -a ! -f $GIT_DIR/MERGE_HEAD ]
if [ "$?" != "0" -a ! -f "$GIT_DIR/MERGE_HEAD" ]
then
rm -f .editmsg
git-status
Expand Down
6 changes: 3 additions & 3 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ rsync_slurped_objects=

if test "" = "$append"
then
: >$GIT_DIR/FETCH_HEAD
: >"$GIT_DIR/FETCH_HEAD"
fi

append_fetch_head () {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df34297

Please sign in to comment.