Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Documentation/git-status.txt: mention color configuration
[gitweb.git]
/
contrib
/
remotes2config.sh
diff --git
a/contrib/remotes2config.sh
b/contrib/remotes2config.sh
index 25901e2b3bc87279d4b2911adc0a5e8d97ce6e38..b996996bfbff614b3bf2f30c04a05c7d0caf45ec 100644
(file)
--- 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" \