mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
fetch-distro: use git log --first-parent
We now import the upstream tag in the debian repository, so this explodes as it tries to walk all upstream commits. Use --first-parent so that merges only get added via the merge commit.
This commit is contained in:
parent
9466fe014f
commit
d9822cd859
@ -96,7 +96,7 @@ def update_distro(args, distro: str, config: dict):
|
||||
print(f'{distro}: commit {new_commit!s} is still fresh')
|
||||
return
|
||||
|
||||
cmd = ['git', '-C', f'pkg/{distro}', 'log', '--graph',
|
||||
cmd = ['git', '-C', f'pkg/{distro}', 'log', '--graph', '--first-parent',
|
||||
'--pretty=oneline', '--no-decorate', '--abbrev-commit', '--abbrev=10',
|
||||
f'{old_commit}..{new_commit}']
|
||||
print(f"+ {shlex.join(cmd)}")
|
||||
|
Loading…
Reference in New Issue
Block a user