{"thread":{"id":"35170","subject":"separate-git-dir doesn't work with mapped drive","startedAt":"2013-10-19T08:49:27Z","lastAt":"2013-10-19T20:21:11Z","messageCount":7,"participants":["Ain Valtin","Duy Nguyen","Fredrik Gustafsson","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"229209","messageId":"CADgy815BJAJrbW0JJ2a9vZ4NwzGersceg6b96TPAey_pR+mOiw@mail.gmail.com","threadId":"35170","inReplyTo":null,"subject":"separate-git-dir doesn't work with mapped drive","fromName":"Ain Valtin","fromEmail":"ain.valtin@gmail.com","sentAt":"2013-10-19T08:49:27Z","receivedAt":"2013-10-19T08:49:27Z","isPatch":false,"sender":{"key":"ain.valtin@gmail.com","avatar":null},"body":"Hi\n\nI want to use git in a VirtualBox guest so that the repository is on\nthe host drive. So in the VB settings for the guest I set up a shared\nfolder \"gitRepos\" to /home/ain with full access rights. Then in the\nguest OS (Windows XP) I map this shared folder as G drive. Now in the\nproject dir I execute\n\nC:\\...\\TPP>git init --separate-git-dir g:/TPP\nInitialized empty Git repository in g:/TPP/\n\nChecked, the repo structure is in the \"g:/TPP/\" (thus the guest OS can\nwrite to the mapped dir) and in the .git file created to the project\ndir there is line\n\ngitdir: g:/TPP\n\nHowever when tring to use the repo it fails to recognise the g:/TPP path, ie\n\nC:\\...\\TPP>git add .\nfatal: unable to access '../../../../../../g:/TPP/config': Invalid argument\n\nAlso tryed \"gitdir: //VBOXSVR/gitRepos/TPP\" but this fails too:\n\nC:\\...\\TPP>git add .\nfatal: Unable to create 'C:/Documents and\nSettings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':\nNo such file or directory\n\nAm I doing something wrong or is it a bug? Any idea how to get it to work?\n\nBTW the VB is 3.0.14 ie rather old version but it seems that this\nisn't the problem as the git init recognises the mapped drive but\nother commands fail.\ngit version is 1.8.4.msysgit.0\n\n\nTIA\nain\n"},{"id":"229210","messageId":"CACsJy8BReiuw346FT7-jve=UX-i55mAsWm_e=QAMy0XVTBEYZQ@mail.gmail.com","threadId":"35170","inReplyTo":"CADgy815BJAJrbW0JJ2a9vZ4NwzGersceg6b96TPAey_pR+mOiw@mail.gmail.com","subject":"Re: separate-git-dir doesn't work with mapped drive","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-10-19T09:17:13Z","receivedAt":"2013-10-19T09:17:13Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"There seems to be some regression fixes regarding dos drives. The one\nthat caught my eyes is 7fbd422 (relative_path should honor\ndos-drive-prefix - 2013-10-14) but it's not released yet. And I'm not\nsure if msys branch picks it up yet even if you want to rebuild and\ntest it yourself. Copying Jiang Xin, maybe he can tell if that commit\nshould fix what you describe here, or it's a new bug.\n-- \nDuy\n\nOn Sat, Oct 19, 2013 at 3:49 PM, Ain Valtin <ain.valtin@gmail.com> wrote:\n> Hi\n>\n> I want to use git in a VirtualBox guest so that the repository is on\n> the host drive. So in the VB settings for the guest I set up a shared\n> folder \"gitRepos\" to /home/ain with full access rights. Then in the\n> guest OS (Windows XP) I map this shared folder as G drive. Now in the\n> project dir I execute\n>\n> C:\\...\\TPP>git init --separate-git-dir g:/TPP\n> Initialized empty Git repository in g:/TPP/\n>\n> Checked, the repo structure is in the \"g:/TPP/\" (thus the guest OS can\n> write to the mapped dir) and in the .git file created to the project\n> dir there is line\n>\n> gitdir: g:/TPP\n>\n> However when tring to use the repo it fails to recognise the g:/TPP path, ie\n>\n> C:\\...\\TPP>git add .\n> fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument\n>\n> Also tryed \"gitdir: //VBOXSVR/gitRepos/TPP\" but this fails too:\n>\n> C:\\...\\TPP>git add .\n> fatal: Unable to create 'C:/Documents and\n> Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':\n> No such file or directory\n>\n> Am I doing something wrong or is it a bug? Any idea how to get it to work?\n>\n> BTW the VB is 3.0.14 ie rather old version but it seems that this\n> isn't the problem as the git init recognises the mapped drive but\n> other commands fail.\n> git version is 1.8.4.msysgit.0\n"},{"id":"229214","messageId":"20131019111137.GT13967@paksenarrion.iveqy.com","threadId":"35170","inReplyTo":"CADgy815BJAJrbW0JJ2a9vZ4NwzGersceg6b96TPAey_pR+mOiw@mail.gmail.com","subject":"Re: separate-git-dir doesn't work with mapped drive","fromName":"Fredrik Gustafsson","fromEmail":"iveqy@iveqy.com","sentAt":"2013-10-19T11:11:37Z","receivedAt":"2013-10-19T11:11:37Z","isPatch":false,"sender":{"key":"iveqy@iveqy.com","avatar":"https://avatars.githubusercontent.com/u/761743?v=4"},"body":"On Sat, Oct 19, 2013 at 11:49:27AM +0300, Ain Valtin wrote:\n> Hi\n> \n> I want to use git in a VirtualBox guest so that the repository is on\n> the host drive. So in the VB settings for the guest I set up a shared\n> folder \"gitRepos\" to /home/ain with full access rights. Then in the\n> guest OS (Windows XP) I map this shared folder as G drive. Now in the\n> project dir I execute\n> \n> C:\\...\\TPP>git init --separate-git-dir g:/TPP\n> Initialized empty Git repository in g:/TPP/\n> \n> Checked, the repo structure is in the \"g:/TPP/\" (thus the guest OS can\n> write to the mapped dir) and in the .git file created to the project\n> dir there is line\n> \n> gitdir: g:/TPP\n> \n> However when tring to use the repo it fails to recognise the g:/TPP path, ie\n> \n> C:\\...\\TPP>git add .\n> fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument\n> \n> Also tryed \"gitdir: //VBOXSVR/gitRepos/TPP\" but this fails too:\n> \n> C:\\...\\TPP>git add .\n> fatal: Unable to create 'C:/Documents and\n> Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':\n> No such file or directory\n> \n> Am I doing something wrong or is it a bug? Any idea how to get it to work?\n> \n> BTW the VB is 3.0.14 ie rather old version but it seems that this\n> isn't the problem as the git init recognises the mapped drive but\n> other commands fail.\n> git version is 1.8.4.msysgit.0\n> \n> \n> TIA\n> ain\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\nGit has a bad history with mapped drives in windows. It's also usually a\nbad idea to use git over the network (and most mapped drives are over\nthe network and not local between virt. machines).\n\nI would advise not to use this setup since for the past two years that\ngit has sometime worked and sometimes not with this setup. (It's not\njust seperate git dir, a git dir at all over a smb share have been\nproblematic).\n\n(This is probably something we should have in a test-suite somewhere.)\n\n-- \nMed vänliga hälsningar\nFredrik Gustafsson\n\ntel: 0733-608274\ne-post: iveqy@iveqy.com\n"},{"id":"229215","messageId":"CADgy817rrg0s9icaT_QdAWGiRsb6T5eg4LJAc+Q7CdM=Csexkw@mail.gmail.com","threadId":"35170","inReplyTo":"20131019111137.GT13967@paksenarrion.iveqy.com","subject":"Re: separate-git-dir doesn't work with mapped drive","fromName":"Ain Valtin","fromEmail":"ain.valtin@gmail.com","sentAt":"2013-10-19T11:45:46Z","receivedAt":"2013-10-19T11:45:46Z","isPatch":false,"sender":{"key":"ain.valtin@gmail.com","avatar":null},"body":"On Sat, Oct 19, 2013 at 2:11 PM, Fredrik Gustafsson <iveqy@iveqy.com> wrote:\n>\n> Git has a bad history with mapped drives in windows. It's also usually a\n> bad idea to use git over the network (and most mapped drives are over\n> the network and not local between virt. machines).\n>\n> I would advise not to use this setup since for the past two years that\n> git has sometime worked and sometimes not with this setup. (It's not\n> just seperate git dir, a git dir at all over a smb share have been\n> problematic).\n\nThat's a shame :(\nAs I wrote I want to use git in a virtual machine and as a extra\nprecaution it would be nice to have the repo outside of the VM, on the\nhost drive - should the VM not to start up for whatever reason I\nwouldn't lose my repo with it...\n\n\nain\n"},{"id":"229216","messageId":"20131019115545.GU13967@paksenarrion.iveqy.com","threadId":"35170","inReplyTo":"CADgy817rrg0s9icaT_QdAWGiRsb6T5eg4LJAc+Q7CdM=Csexkw@mail.gmail.com","subject":"Re: separate-git-dir doesn't work with mapped drive","fromName":"Fredrik Gustafsson","fromEmail":"iveqy@iveqy.com","sentAt":"2013-10-19T11:55:45Z","receivedAt":"2013-10-19T11:55:45Z","isPatch":false,"sender":{"key":"iveqy@iveqy.com","avatar":"https://avatars.githubusercontent.com/u/761743?v=4"},"body":"On Sat, Oct 19, 2013 at 02:45:46PM +0300, Ain Valtin wrote:\n> On Sat, Oct 19, 2013 at 2:11 PM, Fredrik Gustafsson <iveqy@iveqy.com> wrote:\n> >\n> > Git has a bad history with mapped drives in windows. It's also usually a\n> > bad idea to use git over the network (and most mapped drives are over\n> > the network and not local between virt. machines).\n> >\n> > I would advise not to use this setup since for the past two years that\n> > git has sometime worked and sometimes not with this setup. (It's not\n> > just seperate git dir, a git dir at all over a smb share have been\n> > problematic).\n> \n> That's a shame :(\n> As I wrote I want to use git in a virtual machine and as a extra\n> precaution it would be nice to have the repo outside of the VM, on the\n> host drive - should the VM not to start up for whatever reason I\n> wouldn't lose my repo with it...\n> \n> \n> ain\n\nA better way (if you can afford it) is to have a repo on the virtual\nmachine and push to a repo on your hostmachine (so that you've two\nrepos). However your solution \"should\" work but I personally have had\nsome problems with that area.\n\n-- \nMed vänliga hälsningar\nFredrik Gustafsson\n\ntel: 0733-608274\ne-post: iveqy@iveqy.com\n"},{"id":"229221","messageId":"5262A992.8000905@web.de","threadId":"35170","inReplyTo":"CADgy815BJAJrbW0JJ2a9vZ4NwzGersceg6b96TPAey_pR+mOiw@mail.gmail.com","subject":"Re: separate-git-dir doesn't work with mapped drive","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2013-10-19T15:47:30Z","receivedAt":"2013-10-19T15:47:30Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2013-10-19 10.49, Ain Valtin wrote:\n> Hi\n> \n> I want to use git in a VirtualBox guest so that the repository is on\n> the host drive. So in the VB settings for the guest I set up a shared\n> folder \"gitRepos\" to /home/ain with full access rights. Then in the\n> guest OS (Windows XP) I map this shared folder as G drive. Now in the\n> project dir I execute\n> \n> C:\\...\\TPP>git init --separate-git-dir g:/TPP\n> Initialized empty Git repository in g:/TPP/\n> \n> Checked, the repo structure is in the \"g:/TPP/\" (thus the guest OS can\n> write to the mapped dir) and in the .git file created to the project\n> dir there is line\n> \n> gitdir: g:/TPP\n> \n> However when tring to use the repo it fails to recognise the g:/TPP path, ie\n> \n> C:\\...\\TPP>git add .\n> fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument\n> \n> Also tryed \"gitdir: //VBOXSVR/gitRepos/TPP\" but this fails too:\n> \n> C:\\...\\TPP>git add .\n> fatal: Unable to create 'C:/Documents and\n> Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':\n> No such file or directory\n> \n> Am I doing something wrong or is it a bug? Any idea how to get it to work?\n> \n> BTW the VB is 3.0.14 ie rather old version but it seems that this\n> isn't the problem as the git init recognises the mapped drive but\n> other commands fail.\n> git version is 1.8.4.msysgit.0\n> \n> \n> TIA\n> ain\n\n(This could go to msysgit mailing list, so I add a CC)\n(and I think, it is a known issue)\n\nAs a work around, could you try this:\n> Downgrading to msysgit 1.8.3 fixes my problem.\nand tell us if this helps you?\n\n/Torsten\n"},{"id":"229224","messageId":"CADgy816de_hUbBZ9HaOsT+FM7xAKXVgwxgnjaC5M=H-L8vuEyQ@mail.gmail.com","threadId":"35170","inReplyTo":"5262A992.8000905@web.de","subject":"Re: separate-git-dir doesn't work with mapped drive","fromName":"Ain Valtin","fromEmail":"ain.valtin@gmail.com","sentAt":"2013-10-19T20:21:11Z","receivedAt":"2013-10-19T20:21:11Z","isPatch":false,"sender":{"key":"ain.valtin@gmail.com","avatar":null},"body":">\n> (This could go to msysgit mailing list, so I add a CC)\n> (and I think, it is a known issue)\n>\n> As a work around, could you try this:\n>> Downgrading to msysgit 1.8.3 fixes my problem.\n> and tell us if this helps you?\n\nYes, 1.8.3 seems to work (did initial commit successfully).\n\nain\n"}]}