Index: build/generate_version.py |
diff --git a/build/generate_version.py b/build/generate_version.py |
index 2d4c40dba3e8de5dc22bee7032515648d2ddfd09..785284281f09ba1b0b71011b083cb213cc1634b7 100755 |
--- a/build/generate_version.py |
+++ b/build/generate_version.py |
@@ -28,6 +28,11 @@ VERSION_GEN_CC = os.path.join(CWD, "src", "version_gen.cc") |
def generate_version_file(): |
+ # Make sure the tags are fetched. |
+ subprocess.check_output( |
+ "git fetch origin +refs/tags/*:refs/tags/*", |
+ shell=True, |
+ cwd=CWD) |
tag = subprocess.check_output( |
"git describe --tags", |
shell=True, |