aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/pk4
blob: edf4465181f38f7361fc5c2c43fb58337da04b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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
[DEFAULT]
upstream-branch = upstream
debian-branch = pk4
EOF
fi

cd "$2"
gbp import-dsc "$1"