[SCM] jacktrip/master: Fixed postclone script

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Mon Aug 1 11:03:54 UTC 2016


The following commit has been merged in the master branch:
commit 6b7a4a39d900f8bb58956960a96d20a2ad41205f
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Mon Aug 1 12:21:59 2016 +0200

    Fixed postclone script
    
    no need to checkout all the branches...

diff --git a/debian/gbp/postclone.sh b/debian/gbp/postclone.sh
index 59ac8c6..5790ec6 100755
--- a/debian/gbp/postclone.sh
+++ b/debian/gbp/postclone.sh
@@ -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

-- 
jacktrip packaging



More information about the pkg-multimedia-commits mailing list