From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "Karl Hasselström" <kha@treskal.com>
Cc: git@vger.kernel.org
Subject: Re: git-{diff,ls}-files from a subdirectory fails ...
Date: Wed, 24 Oct 2007 11:06:43 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0710241104560.25221@racer.site> (raw)
In-Reply-To: <20071024012038.GA31326@diana.vm.bytemark.co.uk>
Hi,
On Wed, 24 Oct 2007, Karl Hasselstr?m wrote:
> ... when GIT_DIR is specified.
> 
> I have a repository at ~/stgit-lib. With cwd at the top of the tree,
> things work as expected when I set all those fancy envoronment
> variables:
> 
>   kha@yoghurt:~/stgit-lib> git-diff-files --name-only
>   stgit/utillib.py
> 
>   kha@yoghurt:~/stgit-lib> GIT_DIR=/home/kha/stgit-lib/.git GIT_INDEX_FILE=/home/kha/stgit-lib/.git/index GIT_WORK_TREE=/home/kha/stgit-lib git-diff-files --name-only
>   stgit/utillib.py
> 
> However, it doen't seem to work from a subdirectory:
> 
>   kha@yoghurt:~/stgit-lib/stgit> git-diff-files --name-only
>   stgit/utillib.py
> 
>   kha@yoghurt:~/stgit-lib/stgit> GIT_DIR=/home/kha/stgit-lib/.git GIT_INDEX_FILE=/home/kha/stgit-lib/.git/index GIT_WORK_TREE=/home/kha/stgit-lib git-diff-files --name-only | wc
>       170     170    3560
>From looking at it (very) briefly, it seems that you encountered the same 
bug that was fixed in
dd5c8af176bb935a0b01a7dc2d5e022565c3aac3(Fix setup_git_directory_gently() 
with relative GIT_DIR & GIT_WORK_TREE).
IOW if you run git version v1.5.3.4-14-gdd5c8af or newer, you should not 
experience this.
Hth,
Dscho
next prev parent reply	other threads:[~2007-10-24 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  1:20 git-{diff,ls}-files from a subdirectory fails Karl Hasselström
2007-10-24 10:06 ` Johannes Schindelin [this message]
2007-10-24 10:40   ` Karl Hasselström
2007-10-24 11:26     ` Karl Hasselström
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=Pine.LNX.4.64.0710241104560.25221@racer.site \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=kha@treskal.com \
    /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).