Commit 524c856d authored by Damyan Ivanov's avatar Damyan Ivanov

add a 'push' subcommand

it pushes gbp branches and upstream/* and debian/* tags
parent 86780115
......@@ -135,6 +135,10 @@ See L<dpt-missing-upstream(1)>.
See L<dpt-packagecheck(1)>.
=item B<push> - push relevant refs to C<origin> remote
See L<dpt-push(1)>.
=item B<rename-uploader> - mass-change of uploaded name/email
See L<dpt-rename-uploader(1)>.
......
#!/bin/sh
# Documentation, Copyright & Licence below
die() {
echo $@ >&2
exit 1
}
REFS="master"
for r in upstream pristine-tar; do
if git rev-parse --verify --quiet $r > /dev/null; then
REFS="$REFS $r"
fi
done
git push origin $REFS \
`git tag|grep -E '^(upstream|debian)/'` \
"$@"
exit 0
POD=<<'EOF'
=head1 NAME
dpt-push - push relevant packaging refs to origin Git remote
=head1 SYNOPSIS
B<dpt push> [ I<git argument...> ]
To be run from packaging working directotry.
=head1 DESCRIPTION
B<dpt push> pushes the following refs to the C<origin> remote:
=over
=item C<master> branch
=item C<upstream> branch
=item C<pristine-tar> branch
=item tags named C<debian/*>
=item tags named C<upstream/*>
=back
=head1 COPYRIGHT & LICENSE
Copyright: 2013, Damyan Ivanov <dmn@debian.org>
License: Artistic or GPL-1+
=cut
EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment