#11431 On new package repository creation add a gitignore with *.src.rpm
Opened 14 hours ago by justinz. Modified 5 hours ago

  • Describe the issue
    Users can accidentally commit src.rpm files when building locally if they miss them. Adding /*.src.rpm to all new git repositories would reduce this occurrence for future repos and reduce future storage costs.

  • When do you need this? (YYYY/MM/DD)
    No rush

  • If we cannot complete your request, what is the impact?
    Storage costs. Every time someone accidentally commits a .src.rpm file it is in git forever as an object. Stopping these files from entering the git object storage would reduce future cost of storage expansion


In a way this is already happening if you clone the repo with fedpkg:

$ fedpkg clone -a fedpkg
Cloning into 'fedpkg'...
...
$ cat fedpkg/.git/info/exclude 
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
i386/
i686/
x86_64/
ppc/
ppc64/
ia64/
mips/
arm/
noarch/
/*.src.rpm
/build*.log
/.build-*.log
results/
results_*/
clog
$ 

That's great, however people can and do still clone with plain old git clone, when they do this it's just an empty repo.

Metadata Update from @jnsamyak:
- Issue tagged with: medium-gain, medium-trouble

5 hours ago

Login to comment on this ticket.

Metadata