From: Joey Hess <joey@kitenet.net>
To: git@vger.kernel.org
Cc: 621386@bugs.debian.org
Subject: symlinked working tree gotcha
Date: Sun, 24 Apr 2011 12:58:25 -0400 [thread overview]
Message-ID: <20110424165825.GA21062@gnu.kitenet.net> (raw)
[-- 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 --]
next reply other threads:[~2011-04-24 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-24 16:58 Joey Hess [this message]
2011-04-25 18:15 ` symlinked working tree gotcha Junio C Hamano
2011-04-25 19:09 ` Joey Hess
2011-04-26 3:41 ` Jay Soffian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110424165825.GA21062@gnu.kitenet.net \
--to=joey@kitenet.net \
--cc=621386@bugs.debian.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).