# Re: [PATCH] Support working directory located at root

2 messages from 2010-02-09 to 2010-02-09. Participants: Johannes Sixt, Nguyen Thai Ngoc Duy.
Thread: https://gitlist.dev/t/22581

## Johannes Sixt, 2010-02-09 07:16

Subject: Re: [PATCH] Support working directory located at root
Message-ID: <mtranet.20100209081652.392409790@telekom.at>
URL: https://gitlist.dev/e/mtranet.20100209081652.392409790%40telekom.at

```
Nguyen Thai Ngoc Duy schrieb:
> But I suspect my change in this code is not enough and caused
> the problem (on msys?) for Hannes.

My test was on Linux, btw, roughly:

cd /
git init
cd etc
git add resolv.conf

-- Hannes

```

## Nguyen Thai Ngoc Duy, 2010-02-09 12:27

Subject: Re: [PATCH] Support working directory located at root
Message-ID: <fcaeb9bf1002090427g51754d16tb89b0ae5ba6cada8@mail.gmail.com>
URL: https://gitlist.dev/e/fcaeb9bf1002090427g51754d16tb89b0ae5ba6cada8%40mail.gmail.com
In-Reply-To: <mtranet.20100209081652.392409790@telekom.at>

```
On 2/9/10, Johannes Sixt <j6t@kdbg.org> wrote:
> Nguyen Thai Ngoc Duy schrieb:
>
> > But I suspect my change in this code is not enough and caused
>  > the problem (on msys?) for Hannes.
>
>
> My test was on Linux, btw, roughly:
>
>  cd /
>  git init
>  cd etc
>  git add resolv.conf

OK. Just a wild guess since you're mingw port guy :-)

I changed offset near the end of setup_git_*_gently, and in turn
screwed up prefix calculation. I probably forgot to unset
GIT_WORK_TREE while testing. Will work on a test script first before
getting back to the patch. I think I can solve the DOS drive case too.
Just checking, UNC path is not affected, right?
-- 
Duy

```
