On 12/12/19 3:48 AM, Jean-Michel Vourgère wrote: > Hello > > Upstream of phppgadmin has nice unit tests in its github.com repository, but > they use a .gitattributes file [1] to strip these tests files from the > distributed tar files: All the unit tests are missing from the orig.tar. > > I wonder how to proceed: > > I don't think there is an option in github.com to ignore the "export-ignore" > in .gitattributes, that would have been perfect in my case. > > Ideally, I'd like to generate the orig.tar from a "git clone". But uscan > don't > support that.
Here is an approach that I'm using recently: 1) I followed the "No upstream tarballs" section of git-buildpackage manual [1]. 2) After cloning the upstream repository and checkout of debian/sid branch, I "git rm"ed the .gitattributes file. This is necessary to preserve the tests during git-export. 3) I added "--git-upstream=SLOPPY" to the first "gbp buildpackage" command that commits the pristine tar, so it exports HEAD instead of the release tag. [1] https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.import.upstream-git.html#gbp.import.upstream.git.notarball
signature.asc
Description: OpenPGP digital signature