Commit c6641e13 authored by machenbach's avatar machenbach Committed by Commit bot

Restrict tag-update for version generation to cached git repos.

Otherwise it's impossible to compile v8 without internet
connection.

BUG=chromium:446166
LOG=n
NOTRY=true

Review URL: https://codereview.chromium.org/856323002

Cr-Commit-Position: refs/heads/master@{#26186}
parent ee862276
...@@ -28,11 +28,16 @@ VERSION_GEN_CC = os.path.join(CWD, "src", "version_gen.cc") ...@@ -28,11 +28,16 @@ VERSION_GEN_CC = os.path.join(CWD, "src", "version_gen.cc")
def generate_version_file(): def generate_version_file():
# Make sure the tags are fetched. # Make sure the tags are fetched from cached git repos.
subprocess.check_output( url = subprocess.check_output(
"git fetch origin +refs/tags/*:refs/tags/*", "git config --get remote.origin.url",
shell=True, shell=True,
cwd=CWD) cwd=CWD).strip()
if not url.startswith("http"):
subprocess.check_output(
"git fetch origin +refs/tags/*:refs/tags/*",
shell=True,
cwd=CWD)
tag = subprocess.check_output( tag = subprocess.check_output(
"git describe --tags", "git describe --tags",
shell=True, shell=True,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment