From ad447c5379b56ce584c44ffaad0742365b6fa999 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 26 Sep 2022 12:36:53 +0200 Subject: Revert "scripts/obs: make shallow git clones" 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 --- scripts/obs/lib/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3