Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/pager-configuration-doc'
[gitweb.git]
/
contrib
/
subtree
/
git-subtree.sh
diff --git
a/contrib/subtree/git-subtree.sh
b/contrib/subtree/git-subtree.sh
index 51ae932e5edc54db32fca93e8f6f8aca1bea32f4..7d7af03274ee0759c9e915a6ea7b52ecce65cf55 100755
(executable)
--- a/
contrib/subtree/git-subtree.sh
+++ b/
contrib/subtree/git-subtree.sh
@@
-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"
}