Avoid using `echo -n` anywhere
[gitweb.git] / contrib / subtree / git-subtree.sh
index 8a23f58ba04c4b1402c66d03db69d0c109c90b58..2b217675af58f7e225e8efad48e0391f8efe3f88 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"
 }