# WebDav WorkDir Windows not working

9 messages from 2019-10-26 to 2019-11-04. Participants: Ingo Wolf, brian m. carlson, Johannes Schindelin, Kerry, Richard.
Thread: https://gitlist.dev/t/52125

## Ingo Wolf, 2019-10-26 03:07

Subject: WebDav WorkDir Windows not working
Message-ID: <6c355683-726d-c497-d5df-bb7f8ea770d2@gmx.de>
URL: https://gitlist.dev/e/6c355683-726d-c497-d5df-bb7f8ea770d2%40gmx.de

```
Hi,
Git Windows somehow does not work with a Webdav Workdir even wenn
connected to a Drive-Letter.
It seems like everything work except stat.
So I can checkout to the Webdav Workdir and all the files are checked out,
but git status says the files are deleted even still there.
I can also commit the files, but next git status says deleted again.
When I checkout the files again checkout says error files exist.
This is somehow strange.
Unfortunately I still can't add a not empty worktree, my workaround is
add the worktree to another dir and then move the .git file and edit
the dir name in the worktrees/xyz folder.
But now I have the strange Webdav Problem...

```

## brian m. carlson, 2019-10-27 17:58

Subject: Re: WebDav WorkDir Windows not working
Message-ID: <20191027175850.b6le5r3jf3cxtnah@camp.crustytoothpaste.net>
URL: https://gitlist.dev/e/20191027175850.b6le5r3jf3cxtnah%40camp.crustytoothpaste.net
In-Reply-To: <6c355683-726d-c497-d5df-bb7f8ea770d2@gmx.de>

```
On 2019-10-26 at 03:07:39, Ingo Wolf wrote:
> Hi,
> Git Windows somehow does not work with a Webdav Workdir even wenn
> connected to a Drive-Letter.
> It seems like everything work except stat.
> So I can checkout to the Webdav Workdir and all the files are checked out,
> but git status says the files are deleted even still there.
> I can also commit the files, but next git status says deleted again.
> When I checkout the files again checkout says error files exist.
> This is somehow strange.
> Unfortunately I still can't add a not empty worktree, my workaround is
> add the worktree to another dir and then move the .git file and edit
> the dir name in the worktrees/xyz folder.
> But now I have the strange Webdav Problem...

Knowing how WebDAV works under the hood, I'm not entirely surprised that
you're having this problem.  WebDAV is an okay file transfer protocol,
but it's not very good for expressing rich file system semantics.  Git
expects a file system that provides most of the POSIX guarantees, case
sensitivity excepted, and I'm not sure that WebDAV can provide those.

You can try a couple of things which might help.  You can set
core.trustctime to "false" and core.checkStat to "minimal", which may
help with the inconsistent stat information.  It's also possible that
your WebDAV server has a flaky network connection or is nonconformant,
which happens sometimes, so you could try a different WebDAV server
implementation or a different server.

If none of these seem to work, then you'll probably have to come up with
a solution that doesn't involve using repositories or worktrees on a
WebDAV mount.
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

```

## Ingo Wolf, 2019-11-03 20:37

Subject: Windows Git Status doesn't see files on WebDav, everything else do
Message-ID: <fb194341-f7b6-d036-95f1-441c0cb59ed0@gmx.de>
URL: https://gitlist.dev/e/fb194341-f7b6-d036-95f1-441c0cb59ed0%40gmx.de
In-Reply-To: <20191027175850.b6le5r3jf3cxtnah@camp.crustytoothpaste.net>

```
Hi,

Are there any more ideas what git configs I can try to make

Git Windows Status see the files in a WebDav workdir (and not as deleted)

like any other program, even git commit commits them and
checkout doesn't checkout prompting already there.

Settings recommended by brian haven't helped yet.

Am 27.10.2019 um 18:58 wrote brian m. carlson:
> On 2019-10-26 at 03:07:39, Ingo Wolf wrote:
>> Hi,
>> Git Windows somehow does not work with a Webdav Workdir even wenn
>> connected to a Drive-Letter.
>>
>> brian: Knowing how WebDAV works under the hood, I'm not entirely surprised that
>> you're having this problem.  You can set
>> core.trustctime to "false" and core.checkStat to "minimal", which may

```

## Johannes Schindelin, 2019-11-04 12:29

Subject: Re: Windows Git Status doesn't see files on WebDav, everything else do
Message-ID: <nycvar.QRO.7.76.6.1911041326480.46@tvgsbejvaqbjf.bet>
URL: https://gitlist.dev/e/nycvar.QRO.7.76.6.1911041326480.46%40tvgsbejvaqbjf.bet
In-Reply-To: <fb194341-f7b6-d036-95f1-441c0cb59ed0@gmx.de>

```
Hi Ingo,

please don't top-post. Answers inline:

On Sun, 3 Nov 2019, Ingo Wolf wrote:

> Are there any more ideas what git configs I can try to make Git
> Windows Status see the files in a WebDav workdir (and not as deleted)
> like any other program, even git commit commits them and
> checkout doesn't checkout prompting already there.

It probably has little to do with Git configs, if at all.

> Settings recommended by brian haven't helped yet.

That is an _awfully_ succinct answer. Terse, even. Or, if you will, too
short.

Care to be _quite_ a bit more verbose?

I think that brian's suggestions were quite to the point, they explained
pretty well what is probably going wrong on your side, and that WebDAV
is most likely not something you can use in this context.

Ciao,
Johannes

>
> Am 27.10.2019 um 18:58 wrote brian m. carlson:
> > On 2019-10-26 at 03:07:39, Ingo Wolf wrote:
> > > Hi,
> > > Git Windows somehow does not work with a Webdav Workdir even wenn
> > > connected to a Drive-Letter.
> > >
> > > brian: Knowing how WebDAV works under the hood, I'm not entirely surprised
> > > that
> > > you're having this problem.  You can set
> > > core.trustctime to "false" and core.checkStat to "minimal", which may
>
>

```

## Ingo Wolf, 2019-11-04 13:41

Subject: Re: Windows Git Status doesn't see files on WebDav, everything else do
Message-ID: <af2692a1-79b1-566b-ed3f-56d5232c62be@gmx.de>
URL: https://gitlist.dev/e/af2692a1-79b1-566b-ed3f-56d5232c62be%40gmx.de
In-Reply-To: <nycvar.QRO.7.76.6.1911041326480.46@tvgsbejvaqbjf.bet>

```

Am 04.11.2019 um 13:29 schrieb Johannes Schindelin:
>> Are there any more ideas what git configs I can try to make Git
>> Windows Status see the files in a WebDav workdir (and not as deleted)
>> like any other program, even git commit commits them and
>> checkout doesn't checkout prompting already there.
> It probably has little to do with Git configs, if at all.
>
If git commit is able to commit the file, git status should also be able
to see it's there.

It seems like git status does something special, so may be that is
configurable.

May be the problem is just thinking to complicated.



```

## Ingo Wolf, 2019-11-04 14:22

Subject: Re: Windows Git Status doesn't see files on WebDav, everything else do
Message-ID: <2883e199-bb7d-e323-d3eb-ed8da85cc54a@gmx.de>
URL: https://gitlist.dev/e/2883e199-bb7d-e323-d3eb-ed8da85cc54a%40gmx.de
In-Reply-To: <nycvar.QRO.7.76.6.1911041326480.46@tvgsbejvaqbjf.bet>

```

Am 04.11.2019 um 13:29 schrieb Johannes Schindelin:
>> Settings recommended by brian haven't helped yet.
> That is an _awfully_ succinct answer. Terse, even.
Was that an awfull answer?

I have to tell I'm German and may be have no feel for some language details.

Or may be as a man just in general.

Do you read that answer different then I've tried brian's settings,
still not working,

does somebody know other settings I still can try?



```

## Kerry, Richard, 2019-11-04 15:23

Subject: RE: Windows Git Status doesn't see files on WebDav, everything else do
Message-ID: <AM0PR02MB3715C3E485FD1FB0F0FD9E7B9C7F0@AM0PR02MB3715.eurprd02.prod.outlook.com>
URL: https://gitlist.dev/e/AM0PR02MB3715C3E485FD1FB0F0FD9E7B9C7F0%40AM0PR02MB3715.eurprd02.prod.outlook.com
In-Reply-To: <2883e199-bb7d-e323-d3eb-ed8da85cc54a@gmx.de>

```
> -----Original Message-----
> 
> Am 04.11.2019 um 13:29 schrieb Johannes Schindelin:
> >> Settings recommended by brian haven't helped yet.
> > That is an _awfully_ succinct answer. Terse, even.
> Was that an awfull answer?
> 
> I have to tell I'm German and may be have no feel for some language details.
> 
> Or may be as a man just in general.

[RK>] It's not that your answer was awful, the problem was that it was terse - Too terse for anyone to give any advice on.
I think the request is actually that you should send to the list the commands/settings that you've tried and the results that have been returned to you.

> Do you read that answer different then I've tried brian's settings, still not
> working,
> 
> does somebody know other settings I still can try?
> 

[RK>] (I think Johannes is also German, and a man, so that's not really an excuse....)

Regards,
Richard.


```

## Ingo Wolf, 2019-11-04 16:56

Subject: Re: Windows Git Status doesn't see files on WebDav, everything else do
Message-ID: <4496fcd9-1324-b296-4ba4-ee9fea941f58@gmx.de>
URL: https://gitlist.dev/e/4496fcd9-1324-b296-4ba4-ee9fea941f58%40gmx.de
In-Reply-To: <AM0PR02MB3715C3E485FD1FB0F0FD9E7B9C7F0@AM0PR02MB3715.eurprd02.prod.outlook.com>

```
Am 04.11.2019 um 16:23 schrieb Kerry, Richard:
> [RK>] It's not that your answer was awful, the problem was that it was
> terse - Too terse for anyone to give any advice on.
> I think the request is actually that you should send to the list the commands/settings that you've tried and the results that have been returned to you.
>
My post again Johannes refered to:
1 I asked for more ideas about settings to try,
2 I told the ones of brian haven't helped yet,
3 I quoted them at the end:

 >Hi,


 >>>>1>>>Are there any more ideas what git configs I can try to make

 >Git Windows Status see the files in a WebDav workdir (and not as deleted)

 >[...]

 >>>>2>>>Settings recommended by brian haven't helped yet.

 >Am 27.10.2019 um 18:58 wrote brian m. carlson:

 >[...]

 >Knowing how WebDAV works under the hood, I'm not entirely surprised that
 >you're having this problem.  You can set
 >>>>3>>>>> core.trustctime to "false" and core.checkStat to "minimal",
which may

```

## Ingo Wolf, 2019-11-04 17:35

Subject: Solved: Windows Git WebDav WorkDir
Message-ID: <b9ae055a-d3c8-c7a4-2724-b23edd643432@gmx.de>
URL: https://gitlist.dev/e/b9ae055a-d3c8-c7a4-2724-b23edd643432%40gmx.de
In-Reply-To: <AM0PR02MB3715C3E485FD1FB0F0FD9E7B9C7F0@AM0PR02MB3715.eurprd02.prod.outlook.com>

```
Hi,

git config core.fscache false

seems to make the WebDav Worktree Dir working,

without the other suggested settings.


And I make a new worktree somewhere and move the .git file to directory
with existing source
and edit the gitdir file in .git/worktrees/xyz to the existing source
directory,
since I can't make a new worktree in a directory with existing source.



```
