mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09: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.
This commit is contained in:
@@ -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)}")
|
||||
|
||||
Reference in New Issue
Block a user