summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-09-26 12:36:53 +0200
committerOliver Smith <osmith@sysmocom.de>2022-09-26 12:44:54 +0200
commitad447c5379b56ce584c44ffaad0742365b6fa999 (patch)
tree066fa1185bf436b9ce2c5336df069303e13a0d7b
parent115262d8412d420fb4a2ff26da6002b75a7a4ade (diff)
Revert "scripts/obs: make shallow git clones"HEADmaster
I didn't realize during code review that the git-version-gen script we use in Osmocom repositories need the git history to generate a proper version string. For example (libosmocore): 1.7.0.38-c3b90.202209240002 With a shallow clone, it is: 1.7.0.202209250002 Revert the shallow git clone patch to get the proper version strings again. This reverts commit 115262d8412d420fb4a2ff26da6002b75a7a4ade. Related: https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_nightly_obs.osmocom.org/102/console Related: https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_nightly_obs.osmocom.org/103/console Change-Id: I6176e52187d12d264eee82e238051ca65e0c8f4d
-rw-r--r--scripts/obs/lib/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/obs/lib/git.py b/scripts/obs/lib/git.py
index 59500e1..8dc57ae 100644
--- a/scripts/obs/lib/git.py
+++ b/scripts/obs/lib/git.py
@@ -36,7 +36,7 @@ def clone(project, fetch=False):
print(f"{project}: cloning {url}")
os.makedirs(lib.config.path_cache, exist_ok=True)
- lib.run_cmd(["git", "clone", "--depth", "1", "--no-single-branch", url, repo_path])
+ lib.run_cmd(["git", "clone", url, repo_path])
lib.run_cmd(["git", "config", "user.name", "Osmocom OBS scripts"],
cwd=repo_path)