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