diff options
author | Manoj Gupta <manojgupta@google.com> | 2019-08-09 15:17:16 -0700 |
---|---|---|
committer | Manoj Gupta <manojgupta@chromium.org> | 2019-08-10 15:34:51 +0000 |
commit | 3fa4d0200ec7c5eed35c883ac5999f5d22d74d90 (patch) | |
tree | 52fa8aa8cad0e945fa1f0bb26e61c48316059368 | |
parent | eb729be4771ebbbc520231e28efef32a5db7f8af (diff) | |
download | toolchain-utils-3fa4d0200ec7c5eed35c883ac5999f5d22d74d90.tar.gz |
llvm-tools: Use the chromium mirror for gettting tot hash.
We were querying github to get the tot git hash. However,
the ebuilds use the chromium mirror for llvm sources.
As the mirror can be behind github, it caused a version skew
where the sources could not be checked out to the desired tot hash.
BUG=None
TEST=update_packages script.
Change-Id: I6510213f8de2ea29b26f46741a5da7b4c81f59e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1747167
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
-rwxr-xr-x | llvm_tools/get_llvm_hash.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm_tools/get_llvm_hash.py b/llvm_tools/get_llvm_hash.py index 78affb23..4ced2f4b 100755 --- a/llvm_tools/get_llvm_hash.py +++ b/llvm_tools/get_llvm_hash.py @@ -265,12 +265,10 @@ class LLVMHash(object): def GetTopOfTrunkGitHash(self): """Gets the latest git hash from top of trunk of LLVM.""" - llvm_url = 'https://github.com/llvm/llvm-project' - path_to_master_branch = 'refs/heads/master' - llvm_tot_git_hash_cmd = 'git ls-remote %s %s' % ( - quote(llvm_url), quote(path_to_master_branch)) + llvm_tot_git_hash_cmd = 'git ls-remote %s %s' % (quote( + self._llvm_url), quote(path_to_master_branch)) # Get the latest git hash of the master branch of LLVM. ret, llvm_tot_git_hash, err = self._ce.RunCommandWOutput( |