X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=blobdiff_plain;f=tg-remote.sh;h=3a40081b6b32435837c3b597ee4593f38e79de08;hp=c3e8bd3968b9075963743a39198e9adcb2124140;hb=d400bb3263ab1239cc219541bb4364135b1b753e;hpb=c4c57a55aa1b825109f0ce0547994ad394812902 diff --git a/tg-remote.sh b/tg-remote.sh index c3e8bd3..3a40081 100644 --- a/tg-remote.sh +++ b/tg-remote.sh @@ -27,9 +27,9 @@ git config "remote.$name.url" >/dev/null || die "unknown remote '$name'" ## Configure the remote -git config --add "remote.$name.fetch" "+refs/top-bases/*:refs/remotes/$name/top-bases/*" -git config --add "remote.$name.push" "+refs/top-bases/*:refs/top-bases/*" -git config --add "remote.$name.push" "+refs/heads/*:refs/heads/*" +git config --replace-all "remote.$name.fetch" "+refs/top-bases/*:refs/remotes/$name/top-bases/*" "\\+refs/top-bases/\\*:refs/remotes/$name/top-bases/\\*" +git config --replace-all "remote.$name.push" "+refs/top-bases/*:refs/top-bases/*" "\\+refs/top-bases/\\*:refs/top-bases/\\*" +git config --replace-all "remote.$name.push" "+refs/heads/*:refs/heads/*" "\\+refs/heads/\\*:refs/heads/\\*" info "Remote $name can now follow TopGit topic branches." if [ -z "$populate" ]; then