Codebase list frei0r / b84e5e9
Drop outdated d/README.source IOhannes m zmölnig (Debian/GNU) 1 year, 5 months ago
1 changed file(s) with 0 addition(s) and 34 deletion(s). Raw diff Collapse all Expand all
+0
-34
debian/README.source less more
0 gbp clone
1 ---------
2
3 Starting with gbp>0.8.1, here's a simple way to automatically fine-tune the
4 repository in the following ways:
5 - make git ignore any .pc/ directory (created by quilt)
6 - enable the "--follow-tags" when running 'git-push', so it's harder
7 to forget to push packaging tags along with the branches.
8
9 To enable this for ALL repositories cloned via 'gbp' (in the future), do
10 something like the following:
11
12 $ mkdir -p ~/bin
13 $ cat >> ~/bin/gbphook-postclone <<EOF
14 #!/bin/sh
15 ## script to initialize a cloned repository
16 # - enable the "--follow-tags" mode for pushing
17 echo "tuning git-repository for ${NAME}"
18 git config push.followTags true && echo "enabled push.followTags"
19 # - ignore quilt's .pc/ directory
20 GITEXCLUDE=".git/info/exclude"
21 egrep "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/null 2>&1 \
22 || (echo "/.pc/" >> "${GITEXCLUDE}" && echo "ignoring /.pc/")
23 EOF
24
25 $ chmod u+x ~/bin/gbphook-postclone
26 $ cat >> ~/.gbp.conf <<EOF
27 [clone]
28 postclone = ~/bin/gbphook-postclone
29 EOF
30
31 $ gbp clone ...
32
33 -- IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> Mon, 1 Aug 2016 12:15:50 +0200