X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=copy-gitattributes-to-branches.sh;h=6ebe5e3ec14e59fdf8476780dad85a02b2fbc21d;hp=cdb50ba6d50b308d99caa98d62a30a4215a29abe;hb=c69c948d1e38505bfe79aff2a0e866990c1883c1;hpb=c9bc849a1eb42320042d0dea931c4dcc9859b9a0 diff --git a/copy-gitattributes-to-branches.sh b/copy-gitattributes-to-branches.sh index cdb50ba6..6ebe5e3e 100755 --- a/copy-gitattributes-to-branches.sh +++ b/copy-gitattributes-to-branches.sh @@ -24,8 +24,10 @@ 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 ;; *)