]> git.xonotic.org Git - xonotic/div0-gittools.git/blob - git-svn-update
also show the revert log
[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         [ -x hooks/post-update ] && hooks/post-update
20 )