Bug 34709

Summary: gear-commit: warn when gear-store-tags could update the tags
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: gearAssignee: Dmitry V. Levin <ldv>
Status: NEW --- QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P3 CC: glebfm, ldv, legion, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2018-03-24 17:05:07 MSK
gear-2.2.0-alt1.noarch

Sometimes, people forget to run gear-store-tags -a (which also implies -c). The run of gear-commit is a chance to give a warning about this.

(Of course, the maintainer knows what to do right better, so this shouldn't be a strict check. In cases, when there are no such ref names in the maintainer's working Git repo, I suggest to remain silent.)
Comment 1 Dmitry V. Levin 2018-03-25 02:18:09 MSK
$ rpmquery --changelog git-core
...
* Wed Jul 28 2010 Dmitry V. Levin <ldv@altlinux> 1.7.2.1-alt1
- Updated to maint v1.7.2.1.
- hooks/pre-commit: when invoked by gear-commit,
  ensure that .gear/tags/ is up to date.

Please enable the pre-commit hook.