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

Re: Versioning configuration files on a server: fatal: Unable to create '//etc/.git/index.lock': No such file or directory

From
Matthijs Kooijman <matthijs@stdin.nl>
Date
Nov 18, 2010, 17:17 UTC
Message-ID
<20101118171751.GG22067@login.drsnuggles.stderr.nl>
In-Reply-To
<AANLkTin6vir9UT9c4-9ArNvFHNdHiDiXMtXKRUMoExho@mail.gmail.com>
Hi Nguyen,
> I think 490544b (get_cwd_relative(): do not misinterpret suffix as
> subdirectory - 2010-05-22) causes it. Haven't fully understood what's
> going on in that function though :P

Seems you're right. I just reverted this commit and the problem seems to go away.

In case you're investigation, here's the relevant call to get_cwd_relative in this case is:

Breakpoint 3, get_relative_cwd (buffer=0x756e20 "", size=4096, dir=0x764040 "/") at dir.c:944
Not sure what the return value is, that one got optimized out.
Gr.
Matthijs
Previous: Nguyen Thai Ngoc DuyNext: Matthijs Kooijman
Message 7 of 8 in “Versioning configuration files on a server: fatal: Unable to create '//etc/.git/index.lock': No such file or directory”
  1. Albert StrasheimNov 17, 2010
  2. Matthijs KooijmanNov 17, 2010
  3. Matthijs KooijmanNov 18, 2010
  4. Santi BéjarNov 18, 2010
  5. Nguyen Thai Ngoc DuyNov 18, 2010
  6. Nguyen Thai Ngoc DuyNov 18, 2010
  7. Matthijs KooijmanNov 18, 2010
  8. Matthijs KooijmanNov 18, 2010

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.