]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
set autocrlf and safecrlf in all repos automatically
[xonotic/xonotic.git] / all
diff --git a/all b/all
index c1a830f750343884c60982b16864fdbb3fa8bbd7..bf6dfb9856c062e4f2f5af9827abf4bbdcc5d1e1 100755 (executable)
--- a/all
+++ b/all
@@ -153,7 +153,11 @@ case "$cmd" in
                                                fi
                                                ;;
                                esac
-                               verbose git config remote.origin.fetch "refs/heads/*:refs/remotes/origin/*"
+                               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/}
@@ -392,9 +396,9 @@ case "$cmd" in
                                        if [ x"$REV" = x"->" ]; then
                                                continue
                                        fi
-                                       if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH" | grep .; then
+                                       if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH"; then
                                                echo "$d" > "$patchdir/$i/info.txt"
-                                               echo "$BRANCH" > "$patchdir/$i/info.txt"
+                                               echo "$BRANCH" >> "$patchdir/$i/info.txt"
                                                echo "$UPSTREAM" >> "$patchdir/$i/info.txt"
                                                echo "$TRACK" >> "$patchdir/$i/info.txt"
                                                i=$(($i+1))