diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-07-03 16:11:43 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-07-22 11:38:08 +0200 |
commit | 1c85d56349da7943967377e45da595e32887e0a2 (patch) | |
tree | 00dad1116dd20e17f666f38ed78c9ea06db16c7c /tools | |
parent | tools/fetch-distro: only fetch the configured branch (diff) | |
download | systemd-1c85d56349da7943967377e45da595e32887e0a2.tar.xz systemd-1c85d56349da7943967377e45da595e32887e0a2.zip |
tools/fetch-distro: switch to the target branch
We switch opensuse from "factory" to "devel". I had an old checkout that was
using the stale branch.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fetch-distro.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/fetch-distro.py b/tools/fetch-distro.py index e7f9f59104..9fc5b1bfa6 100755 --- a/tools/fetch-distro.py +++ b/tools/fetch-distro.py @@ -79,6 +79,10 @@ def update_distro(args, distro: str, config: dict): branch = config['Environment']['GIT_BRANCH'] old_commit = config['Environment']['GIT_COMMIT'] + cmd = ['git', '-C', f'pkg/{distro}', 'switch', branch] + print(f"+ {shlex.join(cmd)}") + subprocess.check_call(cmd) + cmd = ['git', '-C', f'pkg/{distro}', 'fetch', 'origin', '-v', f'{branch}:remotes/origin/{branch}'] print(f"+ {shlex.join(cmd)}") |