From: Rudolf Polzer Date: Wed, 21 Jul 2010 08:29:40 +0000 (+0200) Subject: fix usage of HEAD X-Git-Tag: xonotic-v0.1.0preview~357 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=e27b6944b15b7d1847011770d6393fb78f3d1efa;hp=ee731ded7d825fc801fb5e539dfc8f67383375cf;ds=sidebyside fix usage of HEAD --- diff --git a/copy-gitattributes-to-branches.sh b/copy-gitattributes-to-branches.sh index 2ffb44fc..90b98ed4 100755 --- a/copy-gitattributes-to-branches.sh +++ b/copy-gitattributes-to-branches.sh @@ -15,11 +15,16 @@ case "$1" in git config core.autocrlf input git reset --hard git for-each-ref 'refs/remotes/origin' | while read -r HASH TYPE REFNAME; do + case "$REFNAME" in + refs/remotes/origin/HEAD) + continue + ;; + esac git checkout -t "${REFNAME#refs/remotes/}" || git checkout "${REFNAME#refs/remotes/origin/}" git reset --hard "$REFNAME" echo "$attr" > "${me%/*}/.gitattributes" git update-index --refresh - git commit -a -m"CRLF" + git commit -a -m"CRLF fixes, .gitattributes file updated" done ;; *)