osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ci/+/29483
)
Change subject: Revert "scripts/obs: make shallow git clones"
......................................................................
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…
Related:
https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_nightly_obs.osmocom.org…
Change-Id: I6176e52187d12d264eee82e238051ca65e0c8f4d
---
M scripts/obs/lib/git.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/83/29483/1
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 @@
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)
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/29483
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I6176e52187d12d264eee82e238051ca65e0c8f4d
Gerrit-Change-Number: 29483
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange