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 17, 2010, 11:20 UTC
Message-ID
<20101117112042.GX22067@login.drsnuggles.stderr.nl>
In-Reply-To
<AANLkTi=UPWTeZP9uF+FGtsSs7wH3AmwdeLtsPJQnKvez@mail.gmail.com>
Hey,
> su
> cd /
> git init

I've been using git for exactly this purpose succesfully for a while now (git 1.5.6.5 from Debian stable and I think also 1.7.2.3 from Debian testing). The only problem I've found was that, with the former version, a lot of operations need to happen while the current dir is /, otherwise it wouldn't find the git repository properly (or do other weird stuff). This problem was gone in the latter version.

> fatal: Unable to create '//etc/.git/index.lock': No such file or directory

This sounds like git assumes /etc/.git exists, but it really doesn't. Not sure why that happens.

Gr.
Matthijs
Previous: Albert StrasheimNext: Matthijs Kooijman
Message 2 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.