7 data/xonotic-data.pk3dir
8 data/xonotic-maps.pk3dir
9 data/xonotic-music.pk3dir
22 base=`git config remote.origin.url`
23 base=${base%/xonotic.git}
25 if [ -d "$d0/$d" ]; then
27 git config remote.origin.url "$base/${d##*/}.git"
31 git clone "$base/${d##*/}.git" "$d0/$d"
38 if [ -z "$branch" ]; then
45 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
47 git checkout "$branch"
48 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
50 git checkout --track -b "$branch" "$remote/$branch"
61 if [ -z "$branch" ]; then
65 if [ -z "$branch" ]; then
68 r=`git symbolic-ref HEAD`
77 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
81 if [ x"$a" = x"y" ]; then
82 git push "$remote" HEAD:"$branch"
83 git checkout --track -b "$branch" "$remote/$branch"
94 git branch -a | sed 's/^/ /'
101 r=`git symbolic-ref HEAD`
104 if git log "origin/$r".."$r" | grep .; then
105 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
106 echo "Push $r in $d?"
109 if [ x"$a" = x"y" ]; then
110 git push `git config "branch.$r.remote" || echo origin` HEAD