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

Re: separate-git-dir doesn't work with mapped drive

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
Oct 19, 2013, 11:55 UTC
Message-ID
<20131019115545.GU13967@paksenarrion.iveqy.com>
In-Reply-To
<CADgy817rrg0s9icaT_QdAWGiRsb6T5eg4LJAc+Q7CdM=Csexkw@mail.gmail.com>
On Sat, Oct 19, 2013 at 02:45:46PM +0300, Ain Valtin wrote:
Show 19 quoted lines
> On Sat, Oct 19, 2013 at 2:11 PM, Fredrik Gustafsson <iveqy@iveqy.com> wrote:
> >
> > Git has a bad history with mapped drives in windows. It's also usually a
> > bad idea to use git over the network (and most mapped drives are over
> > the network and not local between virt. machines).
> >
> > I would advise not to use this setup since for the past two years that
> > git has sometime worked and sometimes not with this setup. (It's not
> > just seperate git dir, a git dir at all over a smb share have been
> > problematic).
> 
> That's a shame :(
> As I wrote I want to use git in a virtual machine and as a extra
> precaution it would be nice to have the repo outside of the VM, on the
> host drive - should the VM not to start up for whatever reason I
> wouldn't lose my repo with it...
> 
> 
> ain

A better way (if you can afford it) is to have a repo on the virtual machine and push to a repo on your hostmachine (so that you've two repos). However your solution "should" work but I personally have had some problems with that area.

-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com
Previous: Ain ValtinNext: Torsten Bögershausen
Message 5 of 7 in “separate-git-dir doesn't work with mapped drive”
  1. Ain ValtinOct 19, 2013
  2. Duy NguyenOct 19, 2013
  3. Fredrik GustafssonOct 19, 2013
  4. Ain ValtinOct 19, 2013
  5. Fredrik GustafssonOct 19, 2013
  6. Torsten BögershausenOct 19, 2013
  7. Ain ValtinOct 19, 2013

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.