]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - copy-gitattributes-to-branches.sh
also add the attributes file
[xonotic/xonotic.git] / copy-gitattributes-to-branches.sh
index 90b98ed413c8b5e7729b87286822a27f3bad0db3..6ebe5e3ec14e59fdf8476780dad85a02b2fbc21d 100755 (executable)
@@ -24,8 +24,11 @@ case "$1" in
                        git reset --hard "$REFNAME"
                        echo "$attr" > "${me%/*}/.gitattributes"
                        git update-index --refresh
+                       git add .gitattributes
                        git commit -a -m"CRLF fixes, .gitattributes file updated"
                done
+               git checkout master
+               true
                ;;
        *)
                attr=`cat .gitattributes`