git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
To: git@vger.kernel.org
Subject: gitk and git-gui with --git-dir and GIT_DIR
Date: Thu, 08 May 2008 16:41:06 +0200	[thread overview]
Message-ID: <fvv3e4$i00$1@ger.gmane.org> (raw)

I want to track a tree where I should not store a ".git" dir. (You may 
as well assume I don't have direct write access.) So, the ".git" dir is 
somewhere else in the filesystem, actually named something like "repo.git".

I know how to make most of git happy with that structure (even diff). 
Notable exceptions are gitk and git-gui:

gitk::
It requires GIT_DIR to be set and is happy. Only downside is that gitk 
does not fit inside the git-command scheme. Therefore, any aliasing I do 
for git commands does not apply to gitk. Having gitk as git-view or such 
would help.

git-gui::
For non-bare repos it expects git-dirs of the form "path/.git" and bails 
out otherwise. Even when I rename my git dir to such a path things do 
not work: all tracked files are reported missing. This happens even when 
I call git-gui from the actual work tree, i.e. when git diff would work!
It seems as if git-gui is CDing to "path" when git-dir is "path/.git", 
no matter what $PWD, core.worktree or GIT_WORK_TREE say. I don't see why 
this should be desired behaviour.

Michael

             reply	other threads:[~2008-05-08 14:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 14:41 Michael J Gruber [this message]
2008-05-08 23:30 ` gitk and git-gui with --git-dir and GIT_DIR Shawn O. Pearce

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='fvv3e4$i00$1@ger.gmane.org' \
    --to=michaeljgruber+gmane@fastmail.fm \
    --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).