git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367259
91177308-0d34-0410-b5e6-
96231b3b80d8
os.chdir(git_root)
# Get the remote URL, and check if it's one of the standalone repos.
- git_remote_url = git('remote', 'get-url', 'origin')
+ git_remote_url = git('ls-remote', '--get-url', 'origin')
git_remote_url = git_remote_url.rstrip('.git').rstrip('/')
git_remote_repo_name = git_remote_url.rsplit('/', 1)[-1]
split_repo_path = SPLIT_REPO_NAMES.get(git_remote_repo_name)