]> git.xonotic.org Git - xonotic/div0-gittools.git/blob - git-svn-update
f1352e7b5793d43385e17fd33258e958ac553a95
[xonotic/div0-gittools.git] / git-svn-update
1 #!/bin/sh
2
3 set -ex
4
5 gitpath=$1
6 case "$gitpath" in
7         /*)
8                 ;;
9         *)
10                 gitpath="`pwd`/$gitpath"
11                 ;;
12 esac
13
14 (
15         cd "$gitpath"
16         git --bare svn fetch
17         git --bare fetch
18         git --bare update-server-info
19         git --bare push mirror --all || true
20         git --bare push mirror --tags || true
21 )