5
vcs_pull="git://git.debian.org/collab-maint/cinnamon"
6
vcs_push="git.debian.org:/git/collab-maint/cinnamon"
8
vcs_upstream="https://github.com/linuxmint"
10
if [ -e "$path" ]; then
11
echo "Directory already exists" > /dev/stderr
15
name=$(basename "$path")
22
git remote add origin "${vcs_pull}/${name}.git"
23
git remote set-url --push origin "${vcs_push}/${name}.git"
25
git remote add "$name" "${vcs_upstream}/${name}.git"
27
git checkout --orphan master
28
git reset; git commit --allow-empty -m 'Initial debian branch'
30
git checkout --orphan upstream
31
git reset; git commit --allow-empty -m 'Initial upstream branch'
33
git checkout --orphan pristine-tar
34
git reset; git commit --allow-empty -m 'Initial pristine-tar branch'
36
git push origin master upstream pristine-tar --tags
38
git branch --set-upstream-to origin/master master
39
git branch --set-upstream-to origin/upstream upstream
40
git branch --set-upstream-to origin/pristine-tar pristine-tar
42
git config remote.origin.push refs/heads/master
43
git config --add remote.origin.push refs/heads/upstream
44
git config --add remote.origin.push refs/heads/pristine-tar
45
git config --add remote.origin.push refs/tags/debian/*
46
git config --add remote.origin.push refs/tags/upstream/*