set autocrlf and safecrlf in all repos automatically
authorRudolf Polzer <divverent@alientrap.org>
Fri, 16 Apr 2010 17:12:40 +0000 (19:12 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 16 Apr 2010 17:12:40 +0000 (19:12 +0200)
all

diff --git a/all b/all
index 4df3b9a1179b8f8c647aca7a32dbccb22d59b04c..bf6dfb9856c062e4f2f5af9827abf4bbdcc5d1e1 100755 (executable)
--- a/all
+++ b/all
@@ -156,6 +156,9 @@ case "$cmd" in
                                verbose git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
                                        # TODO remove this line later
 
+                               git config core.autocrlf input
+                               git config core.safecrlf true
+
                                r=`git symbolic-ref HEAD`
                                r=${r#refs/heads/}
                                if git config branch.$r.remote >/dev/null 2>&1; then