Skip to content

Commit c4f7446

Browse files
aeubanksAravind Vasudevan
authored andcommitted
[rust] Fix upstream "main" -> "master"
upstream uses "master". Change-Id: I389a2fd263e601877e996f6559b9b994fac43d19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4496865 Reviewed-by: danakj <danakj@chromium.org> Auto-Submit: Arthur Eubanks <aeubanks@google.com> Commit-Queue: Arthur Eubanks <aeubanks@google.com> Cr-Commit-Position: refs/heads/main@{#1141700} NOKEYCHECK=True GitOrigin-RevId: f1d3b193be6a1f58367b0acfd44ecdd4a3cf3218
1 parent 99f61e3 commit c4f7446

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build_rust.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,11 +537,12 @@ def MakeVersionStamp(git_hash):
537537

538538
def GetLatestRustCommit():
539539
"""Get the latest commit hash in the LLVM monorepo."""
540+
url = (
541+
'https://chromium.googlesource.com/external/' +
542+
'github.com/rust-lang/rust/+/refs/heads/master?format=JSON' # nocheck
543+
)
540544
main = json.loads(
541-
urllib.request.urlopen('https://chromium.googlesource.com/external/' +
542-
'github.com/rust-lang/rust/' +
543-
'+/refs/heads/main?format=JSON').read().decode(
544-
"utf-8").replace(")]}'", ""))
545+
urllib.request.urlopen(url).read().decode("utf-8").replace(")]}'", ""))
545546
return main['commit']
546547

547548

0 commit comments

Comments
 (0)