3 # get repository revision 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
9 svn info
$1 |
sed -n 's/Revision: //p'
11 if [ "$inside_git_repo" = "true" ]; then
13 git rev-parse
--short HEAD