Francois Marier wrote:
> On 2011-04-07 at 12:10:03, Joey Hess wrote:
> > Yeah, I had another think over this, and I think it's just a git
> > incompatability on your remote system actually. git-annex-shell recvkey
> > is being run, and I see now that it does update the remote repo's 
> > location log, and will try to git add it:
> 
> On sid: git version 1.7.4.1
> On lucid: git version 1.7.0.4
> 
> > Seems like the git on the remote does not work like git does here,
> > WRT the --git-dir and --work-tree options.
> > 
> > joey@gnu:/tmp>mkdir repo
> > joey@gnu:/tmp>cd repo
> > joey@gnu:/tmp/repo>git init 
> > Initialized empty Git repository in /tmp/repo/.git/
> > joey@gnu:/tmp/repo>touch foo
> > joey@gnu:/tmp/repo>cd /
> > joey@gnu:/>git --git-dir=/tmp/repo/.git --work-tree=/tmp/repo/ add -- foo
> > joey@gnu:/>
> 
> I did the above and it does seem to work fine:

On what system? Perhaps this would fail better:

touch /tmp/repo/bar
cd /
git --git-dir=/tmp/repo/.git --work-tree=/tmp/repo/ add -- /tmp/repo/bar

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to