#!/bin/sh # Use this tool to rewrite your .git/remotes/ files into the config. . git-sh-setup if [ -d "$GIT_DIR"/remotes ]; then echo "Rewriting $GIT_DIR/remotes" >&2 error=0 # rewrite into config { cd "$GIT_DIR"/remotes ls | while read f; do 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" \ -e "s/^Push:[ ]*\(.*\)$/remote.$name.push \1 ^$ /p" \ < "$f" done echo done } | while read key value regex; do case $key in done) if [ $error = 0 ]; then mv "$GIT_DIR"/remotes "$GIT_DIR"/remotes.old fi ;; *) echo "git config $key "$value" $regex" git config $key "$value" $regex || error=1 ;; esac done fi
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
blameview | Folder | 0755 |
|
|
buildsystems | Folder | 0755 |
|
|
ciabot | Folder | 0755 |
|
|
completion | Folder | 0755 |
|
|
continuous | Folder | 0755 |
|
|
convert-objects | Folder | 0755 |
|
|
credential | Folder | 0755 |
|
|
diff-highlight | Folder | 0755 |
|
|
diffall | Folder | 0755 |
|
|
emacs | Folder | 0755 |
|
|
examples | Folder | 0755 |
|
|
fast-import | Folder | 0755 |
|
|
git-jump | Folder | 0755 |
|
|
git-shell-commands | Folder | 0755 |
|
|
gitview | Folder | 0755 |
|
|
hg-to-git | Folder | 0755 |
|
|
hooks | Folder | 0755 |
|
|
mw-to-git | Folder | 0755 |
|
|
p4import | Folder | 0755 |
|
|
patches | Folder | 0755 |
|
|
persistent-https | Folder | 0755 |
|
|
remote-helpers | Folder | 0755 |
|
|
stats | Folder | 0755 |
|
|
subtree | Folder | 0755 |
|
|
svn-fe | Folder | 0755 |
|
|
thunderbird-patch-inline | Folder | 0755 |
|
|
vim | Folder | 0755 |
|
|
workdir | Folder | 0755 |
|
|
README | File | 2.06 KB | 0644 |
|
git-resurrect.sh | File | 4.29 KB | 0644 |
|
remotes2config.sh | File | 770 B | 0644 |
|
rerere-train.sh | File | 1009 B | 0644 |
|