git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* separate-git-dir doesn't work with mapped drive
@ 2013-10-19  8:49 Ain Valtin
  2013-10-19  9:17 ` Duy Nguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ain Valtin @ 2013-10-19  8:49 UTC (permalink / raw)
  To: git

Hi

I want to use git in a VirtualBox guest so that the repository is on
the host drive. So in the VB settings for the guest I set up a shared
folder "gitRepos" to /home/ain with full access rights. Then in the
guest OS (Windows XP) I map this shared folder as G drive. Now in the
project dir I execute

C:\...\TPP>git init --separate-git-dir g:/TPP
Initialized empty Git repository in g:/TPP/

Checked, the repo structure is in the "g:/TPP/" (thus the guest OS can
write to the mapped dir) and in the .git file created to the project
dir there is line

gitdir: g:/TPP

However when tring to use the repo it fails to recognise the g:/TPP path, ie

C:\...\TPP>git add .
fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument

Also tryed "gitdir: //VBOXSVR/gitRepos/TPP" but this fails too:

C:\...\TPP>git add .
fatal: Unable to create 'C:/Documents and
Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':
No such file or directory

Am I doing something wrong or is it a bug? Any idea how to get it to work?

BTW the VB is 3.0.14 ie rather old version but it seems that this
isn't the problem as the git init recognises the mapped drive but
other commands fail.
git version is 1.8.4.msysgit.0


TIA
ain

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: separate-git-dir doesn't work with mapped drive
  2013-10-19  8:49 separate-git-dir doesn't work with mapped drive Ain Valtin
@ 2013-10-19  9:17 ` Duy Nguyen
  2013-10-19 11:11 ` Fredrik Gustafsson
  2013-10-19 15:47 ` Torsten Bögershausen
  2 siblings, 0 replies; 7+ messages in thread
From: Duy Nguyen @ 2013-10-19  9:17 UTC (permalink / raw)
  To: Ain Valtin; +Cc: Git Mailing List, Jiang Xin

There seems to be some regression fixes regarding dos drives. The one
that caught my eyes is 7fbd422 (relative_path should honor
dos-drive-prefix - 2013-10-14) but it's not released yet. And I'm not
sure if msys branch picks it up yet even if you want to rebuild and
test it yourself. Copying Jiang Xin, maybe he can tell if that commit
should fix what you describe here, or it's a new bug.
-- 
Duy

On Sat, Oct 19, 2013 at 3:49 PM, Ain Valtin <ain.valtin@gmail.com> wrote:
> Hi
>
> I want to use git in a VirtualBox guest so that the repository is on
> the host drive. So in the VB settings for the guest I set up a shared
> folder "gitRepos" to /home/ain with full access rights. Then in the
> guest OS (Windows XP) I map this shared folder as G drive. Now in the
> project dir I execute
>
> C:\...\TPP>git init --separate-git-dir g:/TPP
> Initialized empty Git repository in g:/TPP/
>
> Checked, the repo structure is in the "g:/TPP/" (thus the guest OS can
> write to the mapped dir) and in the .git file created to the project
> dir there is line
>
> gitdir: g:/TPP
>
> However when tring to use the repo it fails to recognise the g:/TPP path, ie
>
> C:\...\TPP>git add .
> fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument
>
> Also tryed "gitdir: //VBOXSVR/gitRepos/TPP" but this fails too:
>
> C:\...\TPP>git add .
> fatal: Unable to create 'C:/Documents and
> Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':
> No such file or directory
>
> Am I doing something wrong or is it a bug? Any idea how to get it to work?
>
> BTW the VB is 3.0.14 ie rather old version but it seems that this
> isn't the problem as the git init recognises the mapped drive but
> other commands fail.
> git version is 1.8.4.msysgit.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: separate-git-dir doesn't work with mapped drive
  2013-10-19  8:49 separate-git-dir doesn't work with mapped drive Ain Valtin
  2013-10-19  9:17 ` Duy Nguyen
@ 2013-10-19 11:11 ` Fredrik Gustafsson
  2013-10-19 11:45   ` Ain Valtin
  2013-10-19 15:47 ` Torsten Bögershausen
  2 siblings, 1 reply; 7+ messages in thread
From: Fredrik Gustafsson @ 2013-10-19 11:11 UTC (permalink / raw)
  To: Ain Valtin; +Cc: git

On Sat, Oct 19, 2013 at 11:49:27AM +0300, Ain Valtin wrote:
> Hi
> 
> I want to use git in a VirtualBox guest so that the repository is on
> the host drive. So in the VB settings for the guest I set up a shared
> folder "gitRepos" to /home/ain with full access rights. Then in the
> guest OS (Windows XP) I map this shared folder as G drive. Now in the
> project dir I execute
> 
> C:\...\TPP>git init --separate-git-dir g:/TPP
> Initialized empty Git repository in g:/TPP/
> 
> Checked, the repo structure is in the "g:/TPP/" (thus the guest OS can
> write to the mapped dir) and in the .git file created to the project
> dir there is line
> 
> gitdir: g:/TPP
> 
> However when tring to use the repo it fails to recognise the g:/TPP path, ie
> 
> C:\...\TPP>git add .
> fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument
> 
> Also tryed "gitdir: //VBOXSVR/gitRepos/TPP" but this fails too:
> 
> C:\...\TPP>git add .
> fatal: Unable to create 'C:/Documents and
> Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':
> No such file or directory
> 
> Am I doing something wrong or is it a bug? Any idea how to get it to work?
> 
> BTW the VB is 3.0.14 ie rather old version but it seems that this
> isn't the problem as the git init recognises the mapped drive but
> other commands fail.
> git version is 1.8.4.msysgit.0
> 
> 
> TIA
> ain
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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).

(This is probably something we should have in a test-suite somewhere.)

-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: separate-git-dir doesn't work with mapped drive
  2013-10-19 11:11 ` Fredrik Gustafsson
@ 2013-10-19 11:45   ` Ain Valtin
  2013-10-19 11:55     ` Fredrik Gustafsson
  0 siblings, 1 reply; 7+ messages in thread
From: Ain Valtin @ 2013-10-19 11:45 UTC (permalink / raw)
  To: Fredrik Gustafsson; +Cc: git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: separate-git-dir doesn't work with mapped drive
  2013-10-19 11:45   ` Ain Valtin
@ 2013-10-19 11:55     ` Fredrik Gustafsson
  0 siblings, 0 replies; 7+ messages in thread
From: Fredrik Gustafsson @ 2013-10-19 11:55 UTC (permalink / raw)
  To: Ain Valtin; +Cc: Fredrik Gustafsson, git

On Sat, Oct 19, 2013 at 02:45:46PM +0300, Ain Valtin wrote:
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: separate-git-dir doesn't work with mapped drive
  2013-10-19  8:49 separate-git-dir doesn't work with mapped drive Ain Valtin
  2013-10-19  9:17 ` Duy Nguyen
  2013-10-19 11:11 ` Fredrik Gustafsson
@ 2013-10-19 15:47 ` Torsten Bögershausen
  2013-10-19 20:21   ` Ain Valtin
  2 siblings, 1 reply; 7+ messages in thread
From: Torsten Bögershausen @ 2013-10-19 15:47 UTC (permalink / raw)
  To: Ain Valtin, git, msysGit

On 2013-10-19 10.49, Ain Valtin wrote:
> Hi
> 
> I want to use git in a VirtualBox guest so that the repository is on
> the host drive. So in the VB settings for the guest I set up a shared
> folder "gitRepos" to /home/ain with full access rights. Then in the
> guest OS (Windows XP) I map this shared folder as G drive. Now in the
> project dir I execute
> 
> C:\...\TPP>git init --separate-git-dir g:/TPP
> Initialized empty Git repository in g:/TPP/
> 
> Checked, the repo structure is in the "g:/TPP/" (thus the guest OS can
> write to the mapped dir) and in the .git file created to the project
> dir there is line
> 
> gitdir: g:/TPP
> 
> However when tring to use the repo it fails to recognise the g:/TPP path, ie
> 
> C:\...\TPP>git add .
> fatal: unable to access '../../../../../../g:/TPP/config': Invalid argument
> 
> Also tryed "gitdir: //VBOXSVR/gitRepos/TPP" but this fails too:
> 
> C:\...\TPP>git add .
> fatal: Unable to create 'C:/Documents and
> Settings/Ain/prog/AVT/TPP/../../../../../..///VBOXSVR/gitRepos/TPP/index.lock':
> No such file or directory
> 
> Am I doing something wrong or is it a bug? Any idea how to get it to work?
> 
> BTW the VB is 3.0.14 ie rather old version but it seems that this
> isn't the problem as the git init recognises the mapped drive but
> other commands fail.
> git version is 1.8.4.msysgit.0
> 
> 
> TIA
> ain

(This could go to msysgit mailing list, so I add a CC)
(and I think, it is a known issue)

As a work around, could you try this:
> Downgrading to msysgit 1.8.3 fixes my problem.
and tell us if this helps you?

/Torsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: separate-git-dir doesn't work with mapped drive
  2013-10-19 15:47 ` Torsten Bögershausen
@ 2013-10-19 20:21   ` Ain Valtin
  0 siblings, 0 replies; 7+ messages in thread
From: Ain Valtin @ 2013-10-19 20:21 UTC (permalink / raw)
  To: Torsten Bögershausen; +Cc: git, msysGit

>
> (This could go to msysgit mailing list, so I add a CC)
> (and I think, it is a known issue)
>
> As a work around, could you try this:
>> Downgrading to msysgit 1.8.3 fixes my problem.
> and tell us if this helps you?

Yes, 1.8.3 seems to work (did initial commit successfully).

ain

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-10-19 20:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-19  8:49 separate-git-dir doesn't work with mapped drive Ain Valtin
2013-10-19  9:17 ` Duy Nguyen
2013-10-19 11:11 ` Fredrik Gustafsson
2013-10-19 11:45   ` Ain Valtin
2013-10-19 11:55     ` Fredrik Gustafsson
2013-10-19 15:47 ` Torsten Bögershausen
2013-10-19 20:21   ` Ain Valtin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).