]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools: Fix fetch-mkosi changelog generation
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 26 Jun 2025 11:28:01 +0000 (13:28 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 26 Jun 2025 11:28:15 +0000 (13:28 +0200)
tools/fetch-mkosi.py

index 175bb45990db478da960c601f60935525291f9bf..b18adf7bfa41eef87b7e3def1e28583650e89931 100755 (executable)
@@ -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',
+    cmd = ['git', '-C', args.dir.as_posix(), 'log', '--graph', '--first-parent', '--no-merges',
            '--pretty=oneline', '--no-decorate', '--abbrev-commit', '--abbrev=10',
            f'{old_commit}..{new_commit}']
     print(f"+ {shlex.join(cmd)}")