3 # get repository ID via svn or via git
6 inside_git_repo
=`cd $1 && git rev-parse --is-inside-work-tree 2>/dev/null`
8 if test -d $1/.svn
; then
10 svn info |
grep '^URL' |
awk '{print $NF}'
12 if [ "$inside_git_repo" = "true" ]; then
14 git config
--get remote.origin.url