I have a simple project where I'm experimenting with deb creating: https://github.com/bessarabov/sample-deb I can create package with debuild, but I got lintian warning:
W: sample source: diff-contains-git-control-dir .git
And lintian is right. In the file sample_1.00.tar.gz I have content of the .git folder. There is a simple solution for this: I can run
And in this case there will be no .git/ in tar.gz. But I don't like the idea to specify additional parameters in the command line. There is always a chance to forget to specify that parameters. But I hope there is some way I can place this parameter somewhere in debian/rules file.
How can I fix this lintian warning when building package with debuild?