| 1 | #!/bin/shscip-shell filesystem . . `/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 | echoscip-shell system . . echo. "tuning git-repository for ${NAME}" |
| 10 | gitscip-shell system . . git. config push.followTags true && echoscip-shell system . . echo. "enabled push.followTags" |
| 11 | |
| 12 | GITEXCLUDE=".git/info/exclude" |
| 13 | egrepscip-shell system . . egrep. "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 \ |
| 14 | || (echoscip-shell system . . echo. "/.pc/scip-shell filesystem . . `/.pc/`." >> "${GITEXCLUDE}" && echoscip-shell system . . echo. "ignoring /.pc/") |