diff --git a/tools/fetch-distro.py b/tools/fetch-distro.py index 4387af8397..00b8eca4d1 100755 --- a/tools/fetch-distro.py +++ b/tools/fetch-distro.py @@ -123,7 +123,7 @@ def update_distro(args, distro: str, config: dict): print(f'{pkg_subdir}: commit {new_commit!s} is still fresh') return - cmd = ['git', '-C', f'pkg/{pkg_subdir}', 'log', '--graph', '--first-parent', + cmd = ['git', '-C', f'pkg/{pkg_subdir}', 'log', '--graph', '--no-merges', '--pretty=oneline', '--no-decorate', '--abbrev-commit', '--abbrev=10', f'{old_commit}..{new_commit}'] if subdir is not None: diff --git a/tools/fetch-mkosi.py b/tools/fetch-mkosi.py index 186b1b52db..6e6440d65e 100755 --- a/tools/fetch-mkosi.py +++ b/tools/fetch-mkosi.py @@ -75,7 +75,7 @@ def update_mkosi(args): print(f'mkosi: commit {new_commit!s} is still fresh') return - cmd = ['git', '-C', args.dir.as_posix(), 'log', '--graph', '--first-parent', '--no-merges', + cmd = ['git', '-C', args.dir.as_posix(), 'log', '--graph', '--no-merges', '--pretty=oneline', '--no-decorate', '--abbrev-commit', '--abbrev=10', f'{old_commit}..{new_commit}'] print(f"+ {shlex.join(cmd)}")