Debian Codegraph @

debian/gbp/postclone.sh

raw symbols SCIP
1 #!/bin/sh
2
3 ## script to initialize a cloned repository
4 ## with per (local) repository settings.
5
6 # - ignore quilt's .pc/ directory
7 # - enable the "--follow-tags" mode for pushing
8
9 echo "tuning git-repository for ${NAME}"
10 git config push.followTags true && echo "enabled push.followTags"
11
12 GITEXCLUDE=".git/info/exclude"
13 egrep "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/null 2>&1 \
14 || (echo "/.pc/" >> "${GITEXCLUDE}" && echo "ignoring /.pc/")