X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=copy-gitattributes-to-branches.sh;h=1b4ad07522f8e6dff21b92fc2928c996264fd55c;hp=6ebe5e3ec14e59fdf8476780dad85a02b2fbc21d;hb=e0d2025eb1c42b5b50e8c0b03dc3261bbda490d4;hpb=a49e5ec8c1bdff8d5deb9dc999163d54572cbe3f diff --git a/copy-gitattributes-to-branches.sh b/copy-gitattributes-to-branches.sh index 6ebe5e3e..1b4ad075 100755 --- a/copy-gitattributes-to-branches.sh +++ b/copy-gitattributes-to-branches.sh @@ -22,7 +22,7 @@ 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" git update-index --refresh git add .gitattributes git commit -a -m"CRLF fixes, .gitattributes file updated"