From ee731ded7d825fc801fb5e539dfc8f67383375cf Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 21 Jul 2010 10:26:47 +0200 Subject: [PATCH] more fixing --- copy-gitattributes-to-branches.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/copy-gitattributes-to-branches.sh b/copy-gitattributes-to-branches.sh index 9d51eaee..2ffb44fc 100755 --- a/copy-gitattributes-to-branches.sh +++ b/copy-gitattributes-to-branches.sh @@ -17,12 +17,15 @@ case "$1" in git for-each-ref 'refs/remotes/origin' | while read -r HASH TYPE REFNAME; do git checkout -t "${REFNAME#refs/remotes/}" || git checkout "${REFNAME#refs/remotes/origin/}" git reset --hard "$REFNAME" - cp "${me%/*}/.gitattributes" . + echo "$attr" > "${me%/*}/.gitattributes" git update-index --refresh git commit -a -m"CRLF" done ;; *) + attr=`cat .gitattributes` + export attr ./all each "$me" inner + ./all checkout ;; esac -- 2.39.2