From: Christian Hammerl <info@christian-hammerl.de>
To: git@vger.kernel.org
Subject: Annoying absolute path for "core.worktree" to submodule
Date: Tue, 20 Mar 2012 10:52:43 +0100 [thread overview]
Message-ID: <20120320105243.2e8a489b@christian-hammerl.de> (raw)
Hey folks,
I really love the work you are doing on GIT but the last update
regarding submodules is a bit annoying. Although the path inside the
".git" file is stored relative to the submodule's path, the path in
".git/modules/path-to-submodule/config" is stored as an absolute path
for "core.worktree".
I develop (for some projects) within a chroot where I have a different
username and therefore the path differs if I am currently inside the
chroot or not. If the submodule is initialized inside the chroot, I
always get this message when I cd into the project's directory outside
of the chroot:
fatal: Could not switch to
'/home/chroot-username/parent-path-of-submodule': File or directory not
found
fatal: 'git status --porcelain' failed in submodule
relative-path-to-submodule
This is caused by using `__git_ps1` for my bash-prompt. I don't know
exactly where the problem is and what actions (called by __git_ps1) are
responsible for this.
Any suggestions how to deal with this?
And no, removing __git_ps1 from my bash-prompt is not the answer, I
like this feature very much. ;-)
Thanks in advance
Christian
next reply other threads:[~2012-03-20 9:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 9:52 Christian Hammerl [this message]
2012-03-20 13:31 ` Annoying absolute path for "core.worktree" to submodule Antony Male
2012-03-20 21:39 ` Holding, Lawrence
2012-03-21 19:41 ` Jens Lehmann
2012-03-21 9:42 ` Christian Hammerl
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=20120320105243.2e8a489b@christian-hammerl.de \
--to=info@christian-hammerl.de \
--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).