On Mar 29, Eli Barzilay wrote: > On Mar 27, Jonathan Nieder wrote: > > : "Usage: $0 commit check-attr-args" && > > > > GIT_INDEX=tmp-index git read-tree --reset -i "$1" && > > shift && > > GIT_INDEX=tmp-index git check-attr "$@" && > > rm tmp-index > > I tried that, but it doesn't work. (I used GIT_INDEX_FILE.) In case I'm doing something wrong, here's a script that shows the problem that I have: #!/bin/sh rm -rf /tmp/test mkdir /tmp/test cd /tmp/test mkdir t cd t git init > /dev/null echo "Blah" > foo echo "foo x=y" > .gitattributes git add foo .gitattributes git commit -m "stuff" > /dev/null echo -n "check-attr in a working directory: " git check-attr x foo cd .. git clone --bare t > /dev/null cd t.git git read-tree --reset -i master echo -n "check-attr in a bare repository: " git check-attr x foo -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html