From 6fbdb2005c874daff14c4eff6181eddca473e0c8 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 23 Oct 2017 21:18:18 +0200 Subject: pk4: Simplify Let gbp import-dsc create the repo. --- debian/pk4 | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'debian') diff --git a/debian/pk4 b/debian/pk4 index edf44651..7f795be8 100644 --- a/debian/pk4 +++ b/debian/pk4 @@ -1,19 +1,12 @@ #!/bin/sh set -e -if [ ! -d "$2" ]; then - git init "$2" - - # Add local gbp.conf to override any branch settings in 'debian/gbp.conf' - # (since this checkout wasn't created by "gbp clone"). We want to be sure the - # branches exist so we can build the package right away. - cat < "$2"/.git/gbp.conf +gbp import-dsc --debian-branch=pk4 --upstream-branch=upstream "$1" "$2" +# Add local gbp.conf to override any branch settings in 'debian/gbp.conf' +# (since this checkout wasn't created by "gbp clone"). We want to be sure the +# branches exist so we can build the package right away. +cat < "$2"/.git/gbp.conf [DEFAULT] upstream-branch = upstream debian-branch = pk4 EOF -fi - -cd "$2" -gbp import-dsc "$1" - -- cgit v1.2.3