remove git version from signature

This commit is contained in:
kp2pml30 2025-02-03 18:45:40 +04:00
parent cdd9e3e4fa
commit da78efda62

View file

@ -135,7 +135,7 @@ def _save_at(name: str) -> None:
patches_dir.joinpath(str(i)).unlink()
patches_dir.mkdir(parents=True, exist_ok=True)
target_dir = top_dir.joinpath(*name.split('/'))
subprocess.run(['git', 'format-patch', f'{conf["commit"]}..HEAD', '--no-numbered', '--zero-commit', '--numbered-files', '-o', patches_dir], check=True, cwd=target_dir)
subprocess.run(['git', 'format-patch', f'{conf["commit"]}..HEAD', '--no-numbered', '--zero-commit', '--no-signature', '--numbered-files', '-o', patches_dir], check=True, cwd=target_dir)
new_patches = subprocess.run(['git', 'rev-list', '--count', f'{conf["commit"]}..HEAD'], check=True, cwd=target_dir, text=True, capture_output=True)
conf['patches'] = int(new_patches.stdout.strip())