diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-07-27 14:13:44 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-07-27 17:37:02 -0700 |
commit | 89b7779224ac25b29a46c5efabf65d4171617181 (patch) | |
tree | f479e1717b46b04fac27ca5bc61d043d306399ed /bin/debrel | |
parent | 7b860884ded147131cff405996b7d2ad58ca72dc (diff) | |
download | dotfiles-89b7779224ac25b29a46c5efabf65d4171617181.tar.gz |
debrel: debrebase before push-source
See dgit-maint-debrebase(7).
Diffstat (limited to 'bin/debrel')
-rwxr-xr-x | bin/debrel | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -22,6 +22,14 @@ if [ "$(dpkg-parsechangelog -SDistribution)" = "UNRELEASED" ]; then git commit --include debian/changelog \ -m"finalise changelog for $(dpkg-parsechangelog -SVersion) upload" fi + +# this is not a general test for whether a package is being maintained with +# git-debrebase, but it will ensure the `dch -r` commit is behind the patch +# queue in most cases +if git show-ref | grep -q "refs/ffq-prev\\|refs/debrebase-last"; then + git debrebase +fi + dgit push-source "$@" git push --follow-tags |