Fixed postclone script
authorIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Mon, 1 Aug 2016 10:21:59 +0000 (12:21 +0200)
committerIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Mon, 1 Aug 2016 10:21:59 +0000 (12:21 +0200)
no need to checkout all the branches...

debian/gbp/postclone.sh

index 59ac8c695910841d9e826e3ea00fb4a1ec5fa345..5790ec6df6a4448d15f02b26febd0c55bcb94ed1 100755 (executable)
@@ -6,30 +6,9 @@
 # - ignore quilt's .pc/ directory
 # - enable the "--follow-tags" mode for pushing
 
-error() {
- echo "$@" 1>&2
-}
-
-NAME=$(dpkg-parsechangelog -S Source)
-
-if [ "x${NAME}" = "x" ]; then
- error "unable to determine package name"
- error "make sure you run this script within a source package dir"
- exit 1
-fi
-
-if [ ! -d ".git" ]; then
- error "it seems like this source package is not under git control"
- exit 1
-fi
-
 echo "tuning git-repository for ${NAME}"
 git config push.followTags true && echo "enabled push.followTags"
 
 GITEXCLUDE=".git/info/exclude"
 egrep "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/null 2>&1 \
   || (echo "/.pc/" >> "${GITEXCLUDE}" && echo "ignoring /.pc/")
-
-for branch in pristine-tar upstream master; do
- git checkout "${branch}"
-done