diff --git a/MasterPassword/C/build b/MasterPassword/C/build index ac1dc455..99d31e42 100755 --- a/MasterPassword/C/build +++ b/MasterPassword/C/build @@ -42,14 +42,14 @@ fetchSource() ( if [[ $git ]] && hash git 2>/dev/null; then echo echo "Fetching: ${PWD##*/}, using git..." - git-svn clone --prefix=origin/ --stdlayout "$svn" . + git clone "$svn" . printf '%s' "$(git describe --always)" > "${PWD##*/}-version" return - elif [[ $svn ]] && hash git-svn 2>/dev/null; then + elif [[ $svn ]] && hash git 2>/dev/null && hash "$(git --exec-path)/git-svn" 2>/dev/null; then echo echo "Fetching: ${PWD##*/}, using git-svn..." - git-svn clone --prefix=origin/ --stdlayout "$svn" . + git svn clone --prefix=origin/ --stdlayout "$svn" . printf '%s' "$(git describe --always)" > "${PWD##*/}-version" return