]> granicus.if.org Git - llvm/commitdiff
git-llvm: Restore compatibility with git 1.8.3.
authorJames Y Knight <jyknight@google.com>
Mon, 29 Jul 2019 21:01:11 +0000 (21:01 +0000)
committerJames Y Knight <jyknight@google.com>
Mon, 29 Jul 2019 21:01:11 +0000 (21:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367259 91177308-0d34-0410-b5e6-96231b3b80d8

utils/git-svn/git-llvm

index 763bcbec9bb7ef2eb6a95ea90b8c42b2f952b98b..d4c50a5d04b45fbdb4fc1dc3ab9ab5305509c268 100755 (executable)
@@ -397,7 +397,7 @@ def cmd_push(args):
     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)