projects
/
xonotic
/
xonotic.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2322d
)
more fixing
author
Rudolf Polzer <divverent@alientrap.org>
Wed, 21 Jul 2010 08:26:47 +0000
(10:26 +0200)
committer
Rudolf Polzer <divverent@alientrap.org>
Wed, 21 Jul 2010 08:26:47 +0000
(10:26 +0200)
copy-gitattributes-to-branches.sh
patch
|
blob
|
history
diff --git
a/copy-gitattributes-to-branches.sh
b/copy-gitattributes-to-branches.sh
index 9d51eaee8e453f24325771d0ffe7af6f0386a34e..2ffb44fc492c11a519ddd02b28602d0b513b632c 100755
(executable)
--- 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