git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* symlinked working tree gotcha
@ 2011-04-24 16:58 Joey Hess
  2011-04-25 18:15 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Joey Hess @ 2011-04-24 16:58 UTC (permalink / raw)
  To: git; +Cc: 621386

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

joey@gnu:/tmp>mkdir foo
joey@gnu:/tmp>cd foo
joey@gnu:/tmp/foo>git init
Initialized empty Git repository in /tmp/foo/.git/
joey@gnu:/tmp/foo>touch foo
joey@gnu:/tmp/foo>git add /tmp/foo/foo
joey@gnu:/tmp/foo>cd ..
joey@gnu:/tmp>ln -s foo bar
joey@gnu:/tmp>cd bar
joey@gnu:/tmp/bar>touch bar
joey@gnu:/tmp/bar>git add /tmp/bar/bar
fatal: '/tmp/bar/bar' is outside repository

Is this a bug or a feature of git? I had some code where I had, lazily,
assumed that passing the full path to the file would always work, since
it did, in my experience.

-- 
see shy jo

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-26  3:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-24 16:58 symlinked working tree gotcha Joey Hess
2011-04-25 18:15 ` Junio C Hamano
2011-04-25 19:09   ` Joey Hess
2011-04-26  3:41     ` Jay Soffian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).