summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-03-12 23:37:38 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2011-03-16 11:08:46 +0100
commite175056684aed02597ab8117b22e89ef0c3a5173 (patch)
treed07011c8bc789405d43a015c316189ba7137d49e /g
parent34654ef6e65b9264af7727005cae67967e3ff005 (diff)
Introduce a single .gitattributes file in bootstrap
Diffstat (limited to 'g')
-rwxr-xr-xg3
1 files changed, 3 insertions, 0 deletions
diff --git a/g b/g
index a832fd2ee604..7fbf6834764d 100755
--- a/g
+++ b/g
@@ -35,6 +35,9 @@ function update_hooks()
if [ -z "$(git config push.default)" ] ; then
git config push.default tracking
fi
+ if [ "$PWD" != "$RAWBUILDDIR" -a ! -e .gitattributes ]; then
+ ln -s $RAWBUILDDIR/.gitattributes .
+ fi
}
# extra params for some commands, like log