mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08:00
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.
(cherry picked from commit 1c85d56349
)
This commit is contained in:
parent
8334be48a3
commit
5b9ad0bbb8
@ -79,6 +79,10 @@ def update_distro(args, distro: str, config: dict):
|
|||||||
branch = config['Environment']['GIT_BRANCH']
|
branch = config['Environment']['GIT_BRANCH']
|
||||||
old_commit = config['Environment']['GIT_COMMIT']
|
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',
|
cmd = ['git', '-C', f'pkg/{distro}', 'fetch', 'origin', '-v',
|
||||||
f'{branch}:remotes/origin/{branch}']
|
f'{branch}:remotes/origin/{branch}']
|
||||||
print(f"+ {shlex.join(cmd)}")
|
print(f"+ {shlex.join(cmd)}")
|
||||||
|
Loading…
Reference in New Issue
Block a user