also touch all files, to make git actually reread them
authorRudolf Polzer <divverent@alientrap.org>
Wed, 21 Jul 2010 09:10:14 +0000 (11:10 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 21 Jul 2010 09:10:14 +0000 (11:10 +0200)
copy-gitattributes-to-branches.sh

index 1b4ad07..dd6c51e 100755 (executable)
@@ -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"