osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40304?usp=email )
Change subject: tsetenv: podman_install: tweak git commands ......................................................................
tsetenv: 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(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/04/40304/1
diff --git a/_testenv/testenv/podman_install.py b/_testenv/testenv/podman_install.py index 13552b4..8fdd871 100644 --- a/_testenv/testenv/podman_install.py +++ b/_testenv/testenv/podman_install.py @@ -113,7 +113,7 @@ branch = "master" url = f"https://gerrit.osmocom.org/%7Bproject%7D" 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"): @@ -128,6 +128,8 @@ testenv.cmd.run( [ "git", + "-c", + "advice.detachedHead=false", "-C", git_dir, "clone", @@ -136,7 +138,8 @@ "--branch", branch, url, - ] + ], + no_podman=True, ) show_commit(project, git_dir_project)