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

Re: git on vagrant shared folder

From
Stefan Beller <sbeller@google.com>
Date
Jul 14, 2015, 18:53 UTC
Message-ID
<CAGZ79kbBKzbjbg5u7A7BgnV1JF=5A+-gb0OdYs11g6kx_UQu_A@mail.gmail.com>
In-Reply-To
<20150714183215.GG7613@paksenarrion.iveqy.com>
Show 7 quoted lines
>
>> A few weeks ago we weren’t able to clone and get an error: could not commit /vagrant/.git/config file. Manually we were able to change that file and also the clone command works outside the shared folder.
>
> Why are you trying to commit a file inside the .git dir? Files in that
> dir should not be commited (and I'm pretty sure there was a patch about
> this a while ago). The .git/config file for example is local to each git
> repo and should not be commited.

Actually it is considered a security risk, see http://article.gmane.org/gmane.linux.kernel/1853266

Previous: Fredrik GustafssonNext: Peter Hüfner
Message 3 of 6 in “git on vagrant shared folder”
  1. Peter HüfnerJul 14, 2015
  2. Fredrik GustafssonJul 14, 2015
  3. Stefan BellerJul 14, 2015
  4. Peter HüfnerJul 16, 2015
  5. Junio C HamanoJul 16, 2015
  6. Peter HüfnerJul 20, 2015

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.