Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package obs-git-init for openSUSE:Factory checked in at 2026-07-02 20:12:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/obs-git-init (Old) and /work/SRC/openSUSE:Factory/.obs-git-init.new.1982 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-git-init" Thu Jul 2 20:12:27 2026 rev:8 rq:1363511 version:0.2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/obs-git-init/obs-git-init.changes 2026-05-15 23:53:19.088634737 +0200 +++ /work/SRC/openSUSE:Factory/.obs-git-init.new.1982/obs-git-init.changes 2026-07-02 20:16:16.667540420 +0200 @@ -1,0 +2,6 @@ +Thu Jul 2 13:49:54 UTC 2026 - Adrian Schröter <[email protected]> + +- Update to 0.2.7 + * register format_spec_file as pre-commit hook if available + +------------------------------------------------------------------- Old: ---- obs-git-init-0.2.6.obscpio New: ---- obs-git-init-0.2.7.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ obs-git-init.spec ++++++ --- /var/tmp/diff_new_pack.EK5Rfp/_old 2026-07-02 20:16:17.459567817 +0200 +++ /var/tmp/diff_new_pack.EK5Rfp/_new 2026-07-02 20:16:17.463567956 +0200 @@ -17,7 +17,7 @@ Name: obs-git-init -Version: 0.2.6 +Version: 0.2.7 Release: 0 Summary: A help service to setup git repositories for OBS License: GPL-2.0-or-later @@ -25,6 +25,7 @@ Source0: %{name}-%{version}.tar.xz Requires: perl(Config::INI) Requires: perl(Config::IniFiles) +Recommends: obs-service-format_spec_file BuildArch: noarch %description ++++++ _service ++++++ --- /var/tmp/diff_new_pack.EK5Rfp/_old 2026-07-02 20:16:17.519569893 +0200 +++ /var/tmp/diff_new_pack.EK5Rfp/_new 2026-07-02 20:16:17.535570446 +0200 @@ -2,8 +2,8 @@ <service name="obs_scm" mode="manual"> <param name="url">https://src.opensuse.org/openSUSE/obs-git-init</param> <param name="scm">git</param> - <param name="revision">0.2.6</param> - <param name="version">0.2.6</param> + <param name="revision">0.2.7</param> + <param name="version">0.2.7</param> </service> <service mode="manual" name="set_version" /> ++++++ obs-git-init-0.2.6.obscpio -> obs-git-init-0.2.7.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/obs-git-init-0.2.6/obs-git-init new/obs-git-init-0.2.7/obs-git-init --- old/obs-git-init-0.2.6/obs-git-init 2026-05-15 13:36:10.000000000 +0200 +++ new/obs-git-init-0.2.7/obs-git-init 2026-07-02 15:48:39.000000000 +0200 @@ -54,6 +54,19 @@ $cfg->WriteConfig($config_file) || die("ERROR: Write $config_file failed!\n"); } +# register pre-commit hook +my $pre_commit_hook = "#!/bin/bash +### obs-git-init pre-commit hook +/usr/lib/obs/service/format_spec_file +"; +my $pre_commit_file = ".git/hooks/pre-commit"; +if ( -x "/usr/lib/obs/service/format_spec_file" && ! -e $pre_commit_file ) { + open(FH, '>', $pre_commit_file) || die "unable to write $pre_commit_file: $!\n"; + print FH $pre_commit_hook; + close(FH); + chmod 0755, $pre_commit_file; +} + # set .gitattributes file my $attrib_file = "$workdir/.gitattributes"; my $gitattributes=''; @@ -76,7 +89,7 @@ # Create or update .gitattributes # for (@{['7z', 'bsp', 'bz2', 'gem', 'gz', 'jar', 'lz', 'lzma', 'oxt', - 'pdf', 'png', 'rpm', 'tbz', 'tbz2', 'tgz', 'ttf', 'txz', 'whl', + 'pdf', 'png', 'rpm', 'tar', 'tbz', 'tbz2', 'tgz', 'ttf', 'txz', 'whl', 'xz', 'zip', 'zst']}) { $gitattributes = append("*.$_ ", "*.$_ filter=lfs diff=lfs merge=lfs -text", $gitattributes); } @@ -100,13 +113,14 @@ } close(FH); } +$gitignore = append(".pbuild", ".pbuild", $gitignore); $gitignore = append(".assets", ".assets", $gitignore); $gitignore = append("*.obsinfo", "*.obsinfo", $gitignore); $gitignore = append("*.obscpio", "*.obscpio", $gitignore); $gitignore = append("*.osc", "*.osc", $gitignore); +$gitignore = append("binaries", "binaries", $gitignore); $gitignore = append("_build.*", "_build.*", $gitignore); $gitignore = append("_service:*", "_service:*", $gitignore); -$gitignore = append(".pbuild", ".pbuild", $gitignore); open(FH, '>', $ignore_file) or die $!; print FH $gitignore; ++++++ obs-git-init.obsinfo ++++++ --- /var/tmp/diff_new_pack.EK5Rfp/_old 2026-07-02 20:16:17.731577227 +0200 +++ /var/tmp/diff_new_pack.EK5Rfp/_new 2026-07-02 20:16:17.739577503 +0200 @@ -1,5 +1,5 @@ name: obs-git-init -version: 0.2.6 -mtime: 1778844970 -commit: 8af93ff3a1a939c6a8aba4fc99bec095217cebda5a7502ceecb77ddc5bda3e8f +version: 0.2.7 +mtime: 1783000119 +commit: 715ecf77fdf3f7cc44938060121bc530ebd030140fb053933cb920f26c15ef96
