summaryrefslogtreecommitdiff
path: root/git-debpush
Commit message (Collapse)AuthorAge
* git-debpush: refactor to avoid more than one push commandSean Whitton2019-07-17
| | | | | | No functional change. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: check that upstream tag is ancestor of $branchSean Whitton2019-07-17
| | | | | | Closes: #932096 Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: gather some information earlierSean Whitton2019-07-17
| | | | | | | | For use by sanity checks. Pure code motion. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: cope with spaces in user-supplied upstream tagSean Whitton2019-07-17
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: check for target suite change since last uploadSean Whitton2019-07-17
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: check for pushing the dgit view to the maintainer viewSean Whitton2019-07-17
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: factor out find_last_tag()Sean Whitton2019-07-17
| | | | | | | | Also determine the last debian/ tag earlier, for use by sanity checks. No functional change. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: introduce and call fail_checkSean Whitton2019-07-17
| | | | | | | | | | | | | | Without this, passing --force to override an earlier sanity check might cause the user to miss the output of a later sanity check, which would never get run. We don't want to have multiple forcing options to override different sanity checks, as that is too much complexity for a script like this. So always run all checks, and error out afterwards if at least one of them failed. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: Don't pretend to support --baredebian+tarballSean Whitton2019-07-07
| | | | | | | | | Instead of just deleting the option from the argument parser, accept it, but print a message explicitly stating that the *quilt mode* is not supported by this workflow (i.e. it's not just git-debpush passing the quilt mode on to tag2upload that we don't support). Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: Defend against git-deborig #931509Ian Jackson2019-07-07
| | | | | | | | | | | | | | | | | | | | | | | | Without this, when git-deborig fails and #931509 isn't fixed, git-debpush will silently exit with a nonzero exit status which is very unfriendly. With this change it does something like this: git-debpush: git-deborig failed; maybe try git-debpush --upstream=TAG fatal: Invalid object name 'refs/tags/couldn't find any of the following tags'. It then exits status 127. This is obviously daft, but making this any better is even more complex. When git-deborig is fixed it will do this: couldn't find any of the following tags: 1.0, v1.0, upstream/1.0 tell me a tag or branch head to make an orig.tar from: git deborig --just-print '--version=1.0-1' COMMITTISH git-debpush: git-deborig failed; maybe try git-debpush --upstream=TAG which is still not brilliant but I guess it will do. The downside, if it is one, is that we lose git-deborig's original exit status. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: Support --upstream=TAG (and document it)Ian Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: Defend against unexpected git-deborig outputIan Jackson2019-07-07
| | | | | | | | | | | If git-deborig prints something other than a tag name, for example an error message (see #931509), this approach will bomb out, roughly appropriately. This will also become useful when we make upstream_tag overrideable. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: Change comment headingIan Jackson2019-07-07
| | | | | | | | | IMO "Principles of Operation" would be a comprehensive reference detailing the model and functionality. I think "Design Principles" is the conventional name for semi-self-imposed choices/constraints. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: Fixes to help with pushing native packagesIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: Numerous improvementsSean Whitton2019-07-07
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* git-debpush: Tolerate not specifying a quilt mode if not neededIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: new scriptSean Whitton2019-07-06
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>