Commit 6fbdb200 authored by Guido Günther's avatar Guido Günther

pk4: Simplify

Let gbp import-dsc create the repo.
parent 01da1e61
#!/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"
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