]>
git.ipfire.org Git - thirdparty/gcc.git/blob - contrib/git-fetch-vendor.sh
5 echo "Usage: $0 <vendor>"
10 upstream
=`git config --get "gcc-config.upstream"`
11 if [ x
"$upstream" = x
]
13 echo "Config gcc-config.upstream not set, run contrib/gcc-git-customization"
17 echo "setting up git to fetch vendor ${vendor} to remotes/${upstream}/${vendor}"
19 git config
--replace-all "remote.${upstream}.fetch" "+refs/vendors/${vendor}/heads/*:refs/remotes/${upstream}/${vendor}/*" ":refs/remotes/${upstream}/${vendor}/"
20 git config
--replace-all "remote.${upstream}.fetch" "+refs/vendors/${vendor}/tags/*:refs/tags/${vendor}/*" ":refs/tags/${vendor}/"
21 git config
--replace-all "remote.${upstream}.push" "+refs/heads/${vendor}/*:refs/vendors/${vendor}/heads/*" "^\+refs/heads/${vendor}/"