From bf0bf743d7ed6c2e768bc92d4c09c21a7b6edc0e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 15 May 2012 18:44:09 +0000 Subject: [utils] Fix Get{RepositoryPath,SourceVersion} to have a more robust is-git-svn check. llvm-svn: 156836 --- llvm/utils/GetRepositoryPath | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/utils/GetRepositoryPath') diff --git a/llvm/utils/GetRepositoryPath b/llvm/utils/GetRepositoryPath index 326231c9e5d..f3b0cc56e25 100755 --- a/llvm/utils/GetRepositoryPath +++ b/llvm/utils/GetRepositoryPath @@ -16,7 +16,7 @@ fi cd $1 if [ -d .svn ]; then svn info | grep 'URL:' | cut -d: -f2- -elif [ -d .git/svn ]; then +elif [ -f .git/svn/.metadata ]; then git svn info | grep 'URL:' | cut -d: -f2- elif [ -d .git ]; then git remote -v | grep 'fetch' | awk '{ print $2 }' -- cgit v1.2.3