]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - copy-gitattributes-to-branches.sh
fix another typo
[xonotic/xonotic.git] / copy-gitattributes-to-branches.sh
index 90b98ed413c8b5e7729b87286822a27f3bad0db3..1b4ad07522f8e6dff21b92fc2928c996264fd55c 100755 (executable)
@@ -22,10 +22,13 @@ case "$1" in
                        esac
                        git checkout -t "${REFNAME#refs/remotes/}" || git checkout "${REFNAME#refs/remotes/origin/}"
                        git reset --hard "$REFNAME"
                        esac
                        git checkout -t "${REFNAME#refs/remotes/}" || git checkout "${REFNAME#refs/remotes/origin/}"
                        git reset --hard "$REFNAME"
-                       echo "$attr" > "${me%/*}/.gitattributes"
+                       echo "$attr" > ".gitattributes"
                        git update-index --refresh
                        git update-index --refresh
+                       git add .gitattributes
                        git commit -a -m"CRLF fixes, .gitattributes file updated"
                done
                        git commit -a -m"CRLF fixes, .gitattributes file updated"
                done
+               git checkout master
+               true
                ;;
        *)
                attr=`cat .gitattributes`
                ;;
        *)
                attr=`cat .gitattributes`