X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=copy-gitattributes-to-branches.sh;h=dd6c51e93f149c24f56f211518be5477a2fd7e8c;hp=1b4ad07522f8e6dff21b92fc2928c996264fd55c;hb=47a07537c4c92b353cb21b42b67909ec5488b257;hpb=e0d2025eb1c42b5b50e8c0b03dc3261bbda490d4 diff --git a/copy-gitattributes-to-branches.sh b/copy-gitattributes-to-branches.sh index 1b4ad075..dd6c51e9 100755 --- a/copy-gitattributes-to-branches.sh +++ b/copy-gitattributes-to-branches.sh @@ -23,6 +23,7 @@ case "$1" in git checkout -t "${REFNAME#refs/remotes/}" || git checkout "${REFNAME#refs/remotes/origin/}" git reset --hard "$REFNAME" echo "$attr" > ".gitattributes" + find . -type f -exec touch {} \+ git update-index --refresh git add .gitattributes git commit -a -m"CRLF fixes, .gitattributes file updated"