X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-commit.sh;h=e8b60f70497c71bd66b96115b9bba78cee523a8c;hb=fa2e71c9e794c43634670b62d1b4bf58d1ae7e60;hp=f28fc242241d3f0f5c88b287da0c59417667a013;hpb=99ebd06c18fdb7f8274db6cca456a95942916bb6;p=git.git diff --git a/git-commit.sh b/git-commit.sh index f28fc2422..e8b60f704 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -376,12 +376,12 @@ t,) rm -f "$TMP_INDEX" fi || exit - echo "$commit_only" | + printf '%s\n' "$commit_only" | GIT_INDEX_FILE="$TMP_INDEX" \ git-update-index --add --remove --stdin && save_index && - echo "$commit_only" | + printf '%s\n' "$commit_only" | ( GIT_INDEX_FILE="$NEXT_INDEX" export GIT_INDEX_FILE @@ -432,7 +432,7 @@ fi if test "$log_message" != '' then - echo "$log_message" + printf '%s\n' "$log_message" elif test "$logfile" != "" then if test "$logfile" = - @@ -475,7 +475,7 @@ if test -f "$GIT_DIR/MERGE_HEAD" && test -z "$no_edit"; then echo "#" echo "# It looks like you may be committing a MERGE." echo "# If this is not correct, please remove the file" - echo "# $GIT_DIR/MERGE_HEAD" + printf '%s\n' "# $GIT_DIR/MERGE_HEAD" echo "# and try again" echo "#" fi >>"$GIT_DIR"/COMMIT_EDITMSG