git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: WebDav WorkDir Windows not working

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Oct 27, 2019, 17:58 UTC
Message-ID
<20191027175850.b6le5r3jf3cxtnah@camp.crustytoothpaste.net>
In-Reply-To
<6c355683-726d-c497-d5df-bb7f8ea770d2@gmx.de>
On 2019-10-26 at 03:07:39, Ingo Wolf wrote:
Show 13 quoted lines
> 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
Previous: Ingo WolfNext: Ingo Wolf
Message 2 of 9 in “WebDav WorkDir Windows not working”
  1. Ingo WolfOct 26, 2019
  2. brian m. carlsonOct 27, 2019
  3. Windows Git Status doesn't see files on WebDav, everything else doIngo Wolf, Nov 3, 2019
  4. Johannes SchindelinNov 4, 2019
  5. Ingo WolfNov 4, 2019
  6. Ingo WolfNov 4, 2019
  7. Kerry, RichardNov 4, 2019
  8. Ingo WolfNov 4, 2019
  9. Solved: Windows Git WebDav WorkDirIngo Wolf, Nov 4, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.