# git config error message

5 messages from 2007-11-12 to 2007-11-12. Participants: Jon Smirl, Alex Riesen, Johannes Schindelin, Jakub Narebski.
Thread: https://gitlist.dev/t/10831

## Jon Smirl, 2007-11-12 15:35

Subject: git config error message
Message-ID: <9e4733910711120735p653c643eveb44627bf4532b1a@mail.gmail.com>
URL: https://gitlist.dev/e/9e4733910711120735p653c643eveb44627bf4532b1a%40mail.gmail.com

```
I'm not in a git repo, this error message is misleading.

jonsmirl@terra:~/foo$ git config remote.origin.url
http://git.digispeaker.com/projects/digispeaker-kernel.git
could not lock config file


-- 
Jon Smirl
jonsmirl@gmail.com

```

## Alex Riesen, 2007-11-12 22:23

Subject: Re: git config error message
Message-ID: <20071112222317.GF2918@steel.home>
URL: https://gitlist.dev/e/20071112222317.GF2918%40steel.home
In-Reply-To: <9e4733910711120735p653c643eveb44627bf4532b1a@mail.gmail.com>

```
Jon Smirl, Mon, Nov 12, 2007 16:35:07 +0100:
> I'm not in a git repo, this error message is misleading.
> 
> jonsmirl@terra:~/foo$ git config remote.origin.url
> http://git.digispeaker.com/projects/digispeaker-kernel.git
> could not lock config file
> 

Cygwin or any crashes in this repo lately?
If cygwin, than we probably have a file handle leak in config code.

```

## Johannes Schindelin, 2007-11-12 22:24

Subject: Re: git config error message
Message-ID: <Pine.LNX.4.64.0711122224190.4362@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0711122224190.4362%40racer.site
In-Reply-To: <20071112222317.GF2918@steel.home>

```
Hi,

On Mon, 12 Nov 2007, Alex Riesen wrote:

> Jon Smirl, Mon, Nov 12, 2007 16:35:07 +0100:
> > I'm not in a git repo, this error message is misleading.
> > 
> > jonsmirl@terra:~/foo$ git config remote.origin.url
> > http://git.digispeaker.com/projects/digispeaker-kernel.git
> > could not lock config file
> > 
> 
> Cygwin or any crashes in this repo lately?
> If cygwin, than we probably have a file handle leak in config code.

He said that he's not in a git repo.  Thus, .git/config does not exist, 
and is not lockable, since not even .git/ exists.

Ciao,
Dscho

```

## Alex Riesen, 2007-11-12 22:26

Subject: Re: git config error message
Message-ID: <20071112222629.GG2918@steel.home>
URL: https://gitlist.dev/e/20071112222629.GG2918%40steel.home
In-Reply-To: <Pine.LNX.4.64.0711122224190.4362@racer.site>

```
Johannes Schindelin, Mon, Nov 12, 2007 23:24:54 +0100:
> Hi,
> 
> On Mon, 12 Nov 2007, Alex Riesen wrote:
> 
> > Jon Smirl, Mon, Nov 12, 2007 16:35:07 +0100:
> > > I'm not in a git repo, this error message is misleading.
> > > 
> > > jonsmirl@terra:~/foo$ git config remote.origin.url
> > > http://git.digispeaker.com/projects/digispeaker-kernel.git
> > > could not lock config file
> > > 
> > 
> > Cygwin or any crashes in this repo lately?
> > If cygwin, than we probably have a file handle leak in config code.
> 
> He said that he's not in a git repo.  Thus, .git/config does not exist, 
> and is not lockable, since not even .git/ exists.
> 

Oh.

```

## Jakub Narebski, 2007-11-12 23:09

Subject: Re: git config error message
Message-ID: <fhamf4$g7t$1@ger.gmane.org>
URL: https://gitlist.dev/e/fhamf4%24g7t%241%40ger.gmane.org
In-Reply-To: <20071112222629.GG2918@steel.home>

```
Alex Riesen wrote:

> Johannes Schindelin, Mon, Nov 12, 2007 23:24:54 +0100:
>> Hi,
>> On Mon, 12 Nov 2007, Alex Riesen wrote:
>>> Jon Smirl, Mon, Nov 12, 2007 16:35:07 +0100:
>>>
>>>> I'm not in a git repo, this error message is misleading.
>>>> 
>>>> jonsmirl@terra:~/foo$ git config remote.origin.url
>>>> http://git.digispeaker.com/projects/digispeaker-kernel.git
>>>> could not lock config file
>>>> 
>>> 
>>> Cygwin or any crashes in this repo lately?
>>> If cygwin, than we probably have a file handle leak in config code.
>> 
>> He said that he's not in a git repo.  Thus, .git/config does not exist, 
>> and is not lockable, since not even .git/ exists.
>> 
> 
> Oh.

And neither does per-user config file (I triet to reproduce this error, and
forgot about ~/.gitconfig file).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

```
