Merge branch 'jc/revision-range-unpeel' into maint
[gitweb.git] / contrib / subtree / git-subtree.sh
index 51ae932e5edc54db32fca93e8f6f8aca1bea32f4..7d7af03274ee0759c9e915a6ea7b52ecce65cf55 100755 (executable)
@@ -311,7 +311,7 @@ copy_commit()
                        GIT_COMMITTER_NAME \
                        GIT_COMMITTER_EMAIL \
                        GIT_COMMITTER_DATE
-               (echo -n "$annotate"; cat ) |
+               (printf "%s" "$annotate"; cat ) |
                git commit-tree "$2" $3  # reads the rest of stdin
        ) || die "Can't copy commit $1"
 }