From: Rudolf Polzer Date: Wed, 21 Jul 2010 09:10:14 +0000 (+0200) Subject: also touch all files, to make git actually reread them X-Git-Tag: xonotic-v0.1.0preview~350 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=ad6535cc2acd942e4bc2237e2ea4e7b198666342 also touch all files, to make git actually reread them --- 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"