git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* error: cannot lock ref 'refs/remotes/origin/*'
@ 2008-06-16 16:53 Nicolas Bock
  2008-06-17  1:47 ` Nicolas Bock
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Bock @ 2008-06-16 16:53 UTC (permalink / raw)
  To: git

Hello list,

when running "git gc" I get the following error message as of late:

$ git gc
error: cannot lock ref 'refs/remotes/origin/*'
error: failed to run reflog

When I rsync the directory tree to another machine, I can run "git gc"
without any error messages. What exactly does this error mean? Why would
locking fail?

Thanks already,

nick

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-16 16:53 error: cannot lock ref 'refs/remotes/origin/*' Nicolas Bock
@ 2008-06-17  1:47 ` Nicolas Bock
  2008-06-17 10:41   ` Johannes Schindelin
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Bock @ 2008-06-17  1:47 UTC (permalink / raw)
  To: git

I realized that I recently upgraded from version 1.5.3.7 to 1.5.4.5. I
double checked and downgraded again, and yes, I don't have any problems
running "git gc" with the older version, but I get the below error
message with the newer version of git.

nick


On Mon, 2008-06-16 at 10:53 -0600, Nicolas Bock wrote:
> Hello list,
> 
> when running "git gc" I get the following error message as of late:
> 
> $ git gc
> error: cannot lock ref 'refs/remotes/origin/*'
> error: failed to run reflog
> 
> When I rsync the directory tree to another machine, I can run "git gc"
> without any error messages. What exactly does this error mean? Why would
> locking fail?
> 
> Thanks already,
> 
> nick
> 
> --
> 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

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17  1:47 ` Nicolas Bock
@ 2008-06-17 10:41   ` Johannes Schindelin
  2008-06-17 14:22     ` Nicolas Bock
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2008-06-17 10:41 UTC (permalink / raw)
  To: Nicolas Bock; +Cc: git

Hi,

On Mon, 16 Jun 2008, Nicolas Bock wrote:

> > $ git gc
> > error: cannot lock ref 'refs/remotes/origin/*'
> > error: failed to run reflog

This is a bogus ref name.  Hrm.  Can you look with "git show-ref" if you 
have (by some funny accident) an invalid ref there?

Ciao,
Dscho

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17 10:41   ` Johannes Schindelin
@ 2008-06-17 14:22     ` Nicolas Bock
  2008-06-17 14:29       ` Johan Herland
  2008-06-17 14:46       ` Johannes Schindelin
  0 siblings, 2 replies; 9+ messages in thread
From: Nicolas Bock @ 2008-06-17 14:22 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]

This is what I get:

$ git show-ref
a4995ae293fd95697a643cd3ea45585ecc38a19d refs/heads/ACT
3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/heads/master
78e33155a0ab4ab0acba4c64758681fe99f1c5ca refs/heads/nick
ef66b3aa74b8c1edb55161e01a99dee7cf9edaa3 refs/remotes/origin/*
3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/remotes/origin/master

in what sense is this ref "bogus"? Is it syntactically incorrect?



On Tue, 2008-06-17 at 11:41 +0100, Johannes Schindelin wrote:
> Hi,
> 
> On Mon, 16 Jun 2008, Nicolas Bock wrote:
> 
> > > $ git gc
> > > error: cannot lock ref 'refs/remotes/origin/*'
> > > error: failed to run reflog
> 
> This is a bogus ref name.  Hrm.  Can you look with "git show-ref" if you 
> have (by some funny accident) an invalid ref there?
> 
> Ciao,
> Dscho
> 
> --
> 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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17 14:22     ` Nicolas Bock
@ 2008-06-17 14:29       ` Johan Herland
  2008-06-17 15:49         ` Nicolas Bock
  2008-06-17 14:46       ` Johannes Schindelin
  1 sibling, 1 reply; 9+ messages in thread
From: Johan Herland @ 2008-06-17 14:29 UTC (permalink / raw)
  To: git; +Cc: Nicolas Bock, Johannes Schindelin

On Tuesday 17 June 2008, Nicolas Bock wrote:
> This is what I get:
>
> $ git show-ref
> a4995ae293fd95697a643cd3ea45585ecc38a19d refs/heads/ACT
> 3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/heads/master
> 78e33155a0ab4ab0acba4c64758681fe99f1c5ca refs/heads/nick
> ef66b3aa74b8c1edb55161e01a99dee7cf9edaa3 refs/remotes/origin/*
> 3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/remotes/origin/master
>
> in what sense is this ref "bogus"? Is it syntactically incorrect?

Yes, According to "man git-check-ref-format", asterisk is NOT allowed in 
a ref name.


...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17 14:22     ` Nicolas Bock
  2008-06-17 14:29       ` Johan Herland
@ 2008-06-17 14:46       ` Johannes Schindelin
  1 sibling, 0 replies; 9+ messages in thread
From: Johannes Schindelin @ 2008-06-17 14:46 UTC (permalink / raw)
  To: Nicolas Bock; +Cc: git

Hi,

On Tue, 17 Jun 2008, Nicolas Bock wrote:

> This is what I get:
> 
> $ git show-ref
> a4995ae293fd95697a643cd3ea45585ecc38a19d refs/heads/ACT
> 3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/heads/master
> 78e33155a0ab4ab0acba4c64758681fe99f1c5ca refs/heads/nick
> ef66b3aa74b8c1edb55161e01a99dee7cf9edaa3 refs/remotes/origin/*

This is the culprit.  It is obviously a wrong name: "*" is not allowed.

Hth,
Dscho

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17 14:29       ` Johan Herland
@ 2008-06-17 15:49         ` Nicolas Bock
  2008-06-17 19:09           ` Jakub Narebski
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Bock @ 2008-06-17 15:49 UTC (permalink / raw)
  To: Johan Herland; +Cc: git, Johannes Schindelin

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

I guess I don't understand refs. I figured that since I have

remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

set, I should have a ref refs/remotes/origin/* as well.



On Tue, 2008-06-17 at 16:29 +0200, Johan Herland wrote:
> On Tuesday 17 June 2008, Nicolas Bock wrote:
> > This is what I get:
> >
> > $ git show-ref
> > a4995ae293fd95697a643cd3ea45585ecc38a19d refs/heads/ACT
> > 3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/heads/master
> > 78e33155a0ab4ab0acba4c64758681fe99f1c5ca refs/heads/nick
> > ef66b3aa74b8c1edb55161e01a99dee7cf9edaa3 refs/remotes/origin/*
> > 3378ccb42c22740b7fcc240ffa0e4f798b8acf1f refs/remotes/origin/master
> >
> > in what sense is this ref "bogus"? Is it syntactically incorrect?
> 
> Yes, According to "man git-check-ref-format", asterisk is NOT allowed in 
> a ref name.
> 
> 
> ...Johan
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17 15:49         ` Nicolas Bock
@ 2008-06-17 19:09           ` Jakub Narebski
  2008-06-17 21:00             ` Nicolas Bock
  0 siblings, 1 reply; 9+ messages in thread
From: Jakub Narebski @ 2008-06-17 19:09 UTC (permalink / raw)
  To: Nicolas Bock; +Cc: Johan Herland, git, Johannes Schindelin

Nicolas Bock <nbock@lanl.gov> writes:

> I guess I don't understand refs. I figured that since I have
> 
> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> 
> set, I should have a ref refs/remotes/origin/* as well.

The above is _globbing_ refspec, it means that it maps 
"refs/heads/<name>" branch in remote repository to 
"refs/remotes/origin/<name>" remote-tracking branch in local
repository.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

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

* Re: error: cannot lock ref 'refs/remotes/origin/*'
  2008-06-17 19:09           ` Jakub Narebski
@ 2008-06-17 21:00             ` Nicolas Bock
  0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Bock @ 2008-06-17 21:00 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: Johan Herland, git, Johannes Schindelin

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

Thanks, that explains it..


nick

On Tue, 2008-06-17 at 12:09 -0700, Jakub Narebski wrote:
> Nicolas Bock <nbock@lanl.gov> writes:
> 
> > I guess I don't understand refs. I figured that since I have
> > 
> > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> > 
> > set, I should have a ref refs/remotes/origin/* as well.
> 
> The above is _globbing_ refspec, it means that it maps 
> "refs/heads/<name>" branch in remote repository to 
> "refs/remotes/origin/<name>" remote-tracking branch in local
> repository.
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-06-17 21:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-16 16:53 error: cannot lock ref 'refs/remotes/origin/*' Nicolas Bock
2008-06-17  1:47 ` Nicolas Bock
2008-06-17 10:41   ` Johannes Schindelin
2008-06-17 14:22     ` Nicolas Bock
2008-06-17 14:29       ` Johan Herland
2008-06-17 15:49         ` Nicolas Bock
2008-06-17 19:09           ` Jakub Narebski
2008-06-17 21:00             ` Nicolas Bock
2008-06-17 14:46       ` Johannes Schindelin

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