diff options
author | Ben Jackson <ben@ben.com> | 2009-04-18 20:42:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-18 21:37:46 -0700 |
commit | ea10b60c910e4a23483f47f17becc5e58f07ebe9 (patch) | |
tree | 6ea690864253a52b15cf35c1a2a4dd5ee20e9c99 /git-am.sh | |
parent | 77b96d6dbf65f736a63b8a0bb5f810edbf895a09 (diff) | |
download | git-ea10b60c910e4a23483f47f17becc5e58f07ebe9.tar.gz |
Work around ash "alternate value" expansion bug
Ash (used as /bin/sh on many distros) has a shell expansion bug
for the form ${var:+word word}. The result is a single argument
"word word". Work around by using ${var:+word} ${var:+word} or
equivalent.
Signed-off-by: Ben Jackson <ben@ben.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-am.sh')
-rwxr-xr-x | git-am.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -571,7 +571,7 @@ do GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" export GIT_COMMITTER_DATE fi && - git commit-tree $tree ${parent:+-p $parent} <"$dotest/final-commit" + git commit-tree $tree ${parent:+-p} $parent <"$dotest/final-commit" ) && git update-ref -m "$GIT_REFLOG_ACTION: $FIRSTLINE" HEAD $commit $parent || stop_here $this |