X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=copy-gitattributes-to-branches.sh;h=dd6c51e93f149c24f56f211518be5477a2fd7e8c;hp=03c4d2b0e35223477e77a756b9c0290d5c94430e;hb=85161e770213acbe155f3511c07149f4db3b3594;hpb=6b94755796296e5edbdf79ffb1bf937d240c4435 diff --git a/copy-gitattributes-to-branches.sh b/copy-gitattributes-to-branches.sh index 03c4d2b0..dd6c51e9 100755 --- a/copy-gitattributes-to-branches.sh +++ b/copy-gitattributes-to-branches.sh @@ -22,8 +22,10 @@ case "$1" in esac git checkout -t "${REFNAME#refs/remotes/}" || git checkout "${REFNAME#refs/remotes/origin/}" git reset --hard "$REFNAME" - echo "$attr" > "${me%/*}/.gitattributes" + echo "$attr" > ".gitattributes" + find . -type f -exec touch {} \+ git update-index --refresh + git add .gitattributes git commit -a -m"CRLF fixes, .gitattributes file updated" done git checkout master