Re: `git check-attr' problems & questions
- From
Eli Barzilay <eli@barzilay.org>
- Date
- Mar 29, 2010, 16:09 UTC
- Message-ID
- <19376.53419.640007.930897@winooski.ccs.neu.edu>
- In-Reply-To
- <19376.50971.397375.810974@winooski.ccs.neu.edu>
On Mar 29, Eli Barzilay wrote:
Show 9 quoted lines
> 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!