]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fix check-gitattributes script ignoring .git folders
authorRudolf Polzer <divverent@alientrap.org>
Sat, 17 Apr 2010 18:49:52 +0000 (20:49 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 17 Apr 2010 18:49:52 +0000 (20:49 +0200)
check-gitattributes.sh

index d3c540fc6b636b42227e7d03a7f946b0e231c7f5..6a35c4c0a2d2f6388aa44b6e0dd622af826f8ed8 100755 (executable)
@@ -9,7 +9,7 @@ ISTEXT=" crlf=input"
 LF="
 "
 eol=`cat .gitattributes`
-find . -type f | {
+find . -name .git -prune -o \( -type f -print \) | {
        unseen=`echo "$eol" | cut -d ' ' -f 1 | grep .`
        neweol=
        while IFS= read -r LINE; do