postit-debian/debian
Lum 7f57952a92 postit-debian: support POSTIT_GIT_TAG as a tag (not just a branch)
The previous override_dh_auto_build used 'git clone --branch <tag>'
which only accepts branch names. Feeding it 1.0.1-rc02 (a tag,
not yet pushed to origin) failed with 'La branche distante
1.0.1-rc02 n'a pas ete trouvee' and aborted the package build.

Switch to a 'git init + remote add + fetch --depth=1 origin <ref>
+ checkout FETCH_HEAD' sequence, which works for both branches
and tags, including local-only tags fetched via file:// (the
typical RC-staging workflow: 'git tag' on the local checkout,
then 'make POSTIT_GIT_URL=file:///... POSTIT_GIT_TAG=<tag>'
before pushing).

The fetch error now carries a diagnostic that points the operator
at the file:// override and at the missing 'git push'.

Adds tests/test-fetch-upstream.sh with four cases against the
real pazof/yavsc remote and a synthetic local repo: tag on
GitHub, branch on GitHub, .git reuse, and tag via file://.
Wired into 'make test'.
2026-06-28 13:47:15 +01:00
..
source Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
changelog.in packaging: derive Debian version from POSTIT_GIT_TAG via a changelog template 2026-06-28 13:20:17 +01:00
compat Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
control debian: drop debhelper-compat from Build-Depends (set in compat) 2026-06-28 00:47:30 +01:00
copyright Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postinst Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postit.desktop Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postit.install debian: add postit.install listing files for dh_install 2026-06-28 00:49:14 +01:00
postit.wrapper Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postrm Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
rules postit-debian: support POSTIT_GIT_TAG as a tag (not just a branch) 2026-06-28 13:47:15 +01:00