threads / discuss / 10831

git config error message

Subject: git config error message

## tl;dr

5 messages between Nov 12, 2007 and Nov 12, 2007.

replies: 4people: 4as markdown or json

Jon Smirl· Nov 12, 2007, 15:35 UTC · lore
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· Nov 12, 2007, 22:23 UTC · re: Jon Smirl · lore

Re: git config error message

Jon Smirl, Mon, Nov 12, 2007 16:35:07 +0100:
Show 6 quoted lines
> 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· Nov 12, 2007, 22:24 UTC · re: Alex Riesen · lore

Re: git config error message

Hi,
On Mon, 12 Nov 2007, Alex Riesen wrote:
Show 10 quoted lines
> 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· Nov 12, 2007, 22:26 UTC · re: Johannes Schindelin · lore

Re: git config error message

Johannes Schindelin, Mon, Nov 12, 2007 23:24:54 +0100:
Show 18 quoted lines
> 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· Nov 12, 2007, 23:09 UTC · re: Alex Riesen · lore

Re: git config error message

Alex Riesen wrote:
Show 20 quoted lines
> 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

← back to recent threads