osmith has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40304?usp=email )
Change subject: testenv: podman_install: tweak git commands
......................................................................
testenv: podman_install: tweak git commands
* Do not run them in podman: git is required to run testenv, by not
running it through podman the command in the log is shorter.
* Set advice.detachedHead=false for the git clone to avoid printing the
"You are in 'detached HEAD' state. You can look around ..." text
block
that isn't useful in this context.
Change-Id: I2ee26764d1471e54eff748e11ec2cce6fb662667
---
M _testenv/testenv/podman_install.py
1 file changed, 5 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
laforge: Looks good to me, but someone else must approve
diff --git a/_testenv/testenv/podman_install.py b/_testenv/testenv/podman_install.py
index a8293ef..130085c 100644
--- a/_testenv/testenv/podman_install.py
+++ b/_testenv/testenv/podman_install.py
@@ -112,7 +112,7 @@
branch = "master"
url =
f"https://gerrit.osmocom.org/{project}"
if testenv.args.binary_repo.endswith(":latest"):
- ls_remote = testenv.cmd.run(["git", "ls-remote",
"--tags", url], capture_output=True, text=True)
+ ls_remote = testenv.cmd.run(["git", "ls-remote",
"--tags", url], capture_output=True, text=True, no_podman=True)
tags = []
pattern = re.compile("^\d+\.\d+\.\d+$")
for line in ls_remote.stdout.split("\n"):
@@ -127,6 +127,8 @@
testenv.cmd.run(
[
"git",
+ "-c",
+ "advice.detachedHead=false",
"-C",
git_dir,
"clone",
@@ -135,7 +137,8 @@
"--branch",
branch,
url,
- ]
+ ],
+ no_podman=True,
)
show_commit(project, git_dir_project)
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40304?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I2ee26764d1471e54eff748e11ec2cce6fb662667
Gerrit-Change-Number: 40304
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>