threads / discuss / 27645

git bash

Subject: git bash

## tl;dr

6 messages between Jun 17, 2011 and Jul 18, 2011.

replies: 5people: 4as markdown or json

Massimo Manca· Jun 17, 2011, 13:52 UTC · lore

Hi all, I am using git on Linux Ubuntu, Windows Vista, , Windows 7 and Windows XP (several o.s. to develop sw). In my notebook under Vista if I use bash on mi physical HD (it is divided in C:, F:, H:) it works, if I try to open a bash console on an external HD (or USB or SD memories) and also on network shared drives it doesn't work. Have I configuration problems? I installed last msys git distribution and I choose to use bash shell also in Win to have the same commands on both linux and win. Best regards,

begin:vcard fn:Massimo Manca n:Manca;Massimo org:Micron Engineering di Massimo Manca adr:;;via della Ferriera, 48;Pordenone;PN;33170;ITALIA email;internet:massimo.manca@micronengineering.it tel;work:+39 0434 1856131 tel;fax:+39 0434 1851032 / 178 273 3543 tel;cell:+39 349 4504979 url:http://www.micronengineering.it version:2.1 end:vcard

Carlos Martín Nieto· Jun 17, 2011, 14:18 UTC · re: Massimo Manca · lore

Re: git bash

On Fri, Jun 17, 2011 at 03:52:55PM +0200, Massimo Manca wrote:
Show 5 quoted lines
> Hi all,
> I am using git on Linux Ubuntu, Windows Vista, , Windows 7 and Windows
> XP (several o.s. to develop sw).
> In my notebook under Vista if I use bash on mi physical HD (it is
> divided in C:, F:, H:) it works, if I try to open a bash console on an

Assuming you mean that git doesn't work (rather than bash), could you provide a transcript of what you think went wrong?

> external HD (or USB or SD memories) and also on network shared drives it
> doesn't work.

Are these filsystems FAT32 by any chance. You may need to turn on a couple of compatibility options like case-insensitivity and filemode.

   cmn
-- 
Carlos Martín Nieto | http://cmartin.tk

"¿Cómo voy a decir bobadas si soy mudo?" -- CACHAI
Dirk Süsserott· Jun 17, 2011, 14:39 UTC · re: Carlos Martín Nieto · lore

Re: git bash

Am 17.06.2011 16:18 schrieb Carlos Martín Nieto:
Show 15 quoted lines
> On Fri, Jun 17, 2011 at 03:52:55PM +0200, Massimo Manca wrote:
>> Hi all,
>> I am using git on Linux Ubuntu, Windows Vista, , Windows 7 and Windows
>> XP (several o.s. to develop sw).
>> In my notebook under Vista if I use bash on mi physical HD (it is
>> divided in C:, F:, H:) it works, if I try to open a bash console on an
> 
> Assuming you mean that git doesn't work (rather than bash), could you
> provide a transcript of what you think went wrong?
> 
>> external HD (or USB or SD memories) and also on network shared drives it
>> doesn't work.
> 
> Are these filsystems FAT32 by any chance. You may need to turn on a
> couple of compatibility options like case-insensitivity and filemode.

But when using msysGit, these options are already set appropriate, aren't they?

Sometimes I have a similar problem. What do you mean by "opening a bash console on an external HD"? Do you right-click a folder and then "Git bash (here)"? I don't use that feature but I always start the bash with its regular icon (so my answer may probably not help you). It then starts in my $HOME and I change to the external HD (say X:) like so:

$ cd /x/foo

I noticed the following: When the ext. HD is attached/mounted *before* I start the bash, then it works. But if I have a running bash and then mount the drive, I cannot cd to it. "No such path" or sth. It seems, that bash builds a list of available drives only at startup. Might that be your problem? If so, then close all bashs and re-open them after mounting the devices.

HTH, Dirk

Massimo Manca· Jun 17, 2011, 15:07 UTC · re: Dirk Süsserott · lore

Re: git bash

Il 17/06/2011 16.39, Dirk Süsserott ha scritto:
Show 16 quoted lines
> Am 17.06.2011 16:18 schrieb Carlos Martín Nieto:
>> On Fri, Jun 17, 2011 at 03:52:55PM +0200, Massimo Manca wrote:
>>> Hi all,
>>> I am using git on Linux Ubuntu, Windows Vista, , Windows 7 and Windows
>>> XP (several o.s. to develop sw).
>>> In my notebook under Vista if I use bash on mi physical HD (it is
>>> divided in C:, F:, H:) it works, if I try to open a bash console on an
>> Assuming you mean that git doesn't work (rather than bash), could you
>> provide a transcript of what you think went wrong?
>>
>>> external HD (or USB or SD memories) and also on network shared drives it
>>> doesn't work.
>> Are these filsystems FAT32 by any chance. You may need to turn on a
>> couple of compatibility options like case-insensitivity and filemode.
> But when using msysGit, these options are already set appropriate,
> aren't they?
Yes they are.
> Sometimes I have a similar problem. What do you mean by "opening a bash
> console on an external HD"?
Yes, it is more user friendly.
Show 6 quoted lines
>  Do you right-click a folder and then "Git
> bash (here)"? I don't use that feature but I always start the bash with
> its regular icon (so my answer may probably not help you).  It then
> starts in my $HOME and I change to the external HD (say X:) like so:
>
> $ cd /x/foo

Opening a bash shell from the icon and then changing the working folder.... it works :) Very strange bug.

Show 7 quoted lines
> I noticed the following: When the ext. HD is attached/mounted *before* I
> start the bash, then it works. But if I have a running bash and then
> mount the drive, I cannot cd to it. "No such path" or sth. It seems,
> that bash builds a list of available drives only at startup. Might that
> be your problem? If so, then close all bashs and re-open them after
> mounting the devices.
>
In my situation the external HD (an SD card) it is always on.
> HTH,
> Dirk
>
>

begin:vcard fn:Massimo Manca n:Manca;Massimo org:Micron Engineering di Massimo Manca adr:;;via della Ferriera, 48;Pordenone;PN;33170;ITALIA email;internet:massimo.manca@micronengineering.it tel;work:+39 0434 1856131 tel;fax:+39 0434 1851032 / 178 273 3543 tel;cell:+39 349 4504979 url:http://www.micronengineering.it version:2.1 end:vcard

Johannes Schindelin· Jul 14, 2011, 23:15 UTC · re: Dirk Süsserott · lore

Re: git bash

Hi Dirk,
On Fri, 17 Jun 2011, Dirk Süsserott wrote:
Show 6 quoted lines
> I noticed the following: When the ext. HD is attached/mounted *before* I 
> start the bash, then it works. But if I have a running bash and then 
> mount the drive, I cannot cd to it. "No such path" or sth. It seems, 
> that bash builds a list of available drives only at startup. Might that 
> be your problem? If so, then close all bashs and re-open them after 
> mounting the devices.
This behavior is discussed here:
http://permalink.gmane.org/gmane.comp.version-control.git/141867
(look for "NO_FSTAB_THREAD")

Ciao, Johannes

Dirk Süsserott· Jul 18, 2011, 18:51 UTC · re: Johannes Schindelin · lore

Re: git bash

Hi Johannes,
Am 15.07.2011 01:15 schrieb Johannes Schindelin:
Show 19 quoted lines
> Hi Dirk,
> 
> On Fri, 17 Jun 2011, Dirk Süsserott wrote:
> 
>> I noticed the following: When the ext. HD is attached/mounted *before* I 
>> start the bash, then it works. But if I have a running bash and then 
>> mount the drive, I cannot cd to it. "No such path" or sth. It seems, 
>> that bash builds a list of available drives only at startup. Might that 
>> be your problem? If so, then close all bashs and re-open them after 
>> mounting the devices.
> 
> This behavior is discussed here:
> 
> http://permalink.gmane.org/gmane.comp.version-control.git/141867
> 
> (look for "NO_FSTAB_THREAD")
> 
> Ciao,
> Johannes

thank you for the pointer. That's what I've observed. To be honest, I'm one of the lazy guys and didn't really understand the impact of setting NO_FSTAB_THREAD at first glance. As I understood, setting it means "mounting drives afterwards works, but slows things down" and not setting it means the opposite. Meanwhile I'm familiar with re-starting my git-bash in case (that's not too bad for me). I almost never run git commands from cmd.exe because cmd.exe is rubbish.

But, again, thanx for the help; now I know how to fine-tune the behaviour if I wish.

Cheers, Dirk

← back to recent threads