aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/pk417
1 files changed, 5 insertions, 12 deletions
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 <<EOF > "$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 <<EOF > "$2"/.git/gbp.conf
[DEFAULT]
upstream-branch = upstream
debian-branch = pk4
EOF
-fi
-
-cd "$2"
-gbp import-dsc "$1"
-