Merge branch 'tr/log-full-diff-keep-true-parents'
[gitweb.git] / contrib / subtree / git-subtree.sh
index 10daa8b0eb3352305347354d09ef443993af7809..7d7af03274ee0759c9e915a6ea7b52ecce65cf55 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # git-subtree.sh: split/join git repositories in subdirectories of this one
 #
@@ -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"
 }