summaryrefslogtreecommitdiff
path: root/contrib/remotes2config.sh
diff options
context:
space:
mode:
authorJason Riedy <ejr@EECS.Berkeley.EDU>2007-01-16 01:31:29 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-16 06:23:21 (GMT)
commit2aad957a519b354e248da8c76ee0d3997083dde6 (patch)
tree258b4f061def13b863c31d06e3a30114de413e1a /contrib/remotes2config.sh
parentfb9522062c89da61f5ccbaa1d063e0754463176f (diff)
downloadgit-2aad957a519b354e248da8c76ee0d3997083dde6.zip
git-2aad957a519b354e248da8c76ee0d3997083dde6.tar.gz
git-2aad957a519b354e248da8c76ee0d3997083dde6.tar.bz2
Replace "echo -n" with printf in shell scripts.
Not all echos know -n. This was causing a test failure in t5401-update-hooks.sh, but not t3800-mktag.sh for some reason. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib/remotes2config.sh')
-rw-r--r--contrib/remotes2config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remotes2config.sh b/contrib/remotes2config.sh
index 25901e2..b996996 100644
--- a/contrib/remotes2config.sh
+++ b/contrib/remotes2config.sh
@@ -11,7 +11,7 @@ if [ -d "$GIT_DIR"/remotes ]; then
{
cd "$GIT_DIR"/remotes
ls | while read f; do
- name=$(echo -n "$f" | tr -c "A-Za-z0-9" ".")
+ name=$(printf "$f" | tr -c "A-Za-z0-9" ".")
sed -n \
-e "s/^URL: \(.*\)$/remote.$name.url \1 ./p" \
-e "s/^Pull: \(.*\)$/remote.$name.fetch \1 ^$ /p" \