Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Git CPAN distribution.

Report information
The Basics
Id: 91527
Status: open
Priority: 0/
Queue: Dist-Zilla-Plugin-Git

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CommitBuild fatal: Cannot lock the ref when on tag
Date: Thu, 19 Dec 2013 16:05:10 -0600
To: bugs-Dist-Zilla-Plugin-Git [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
https://github.com/travis-ci/travis-ci/issues/1768 fatal: Cannot lock the ref 'refs/heads/build/tags/0.10^0'. git clone --depth=50 --branch=0.10 git:// github.com/xenoterracide/Dist-Zilla-Plugin-Test-EOL.gitxenoterracide/Dist-Zilla-Plugin-Test-EOL what travis is doing is checking out into a detached state, CommitBuild can't handle this and so it dies, instead it should probably warn and continue. -- Caleb Cushing http://xenoterracide.com Calendar: https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago
Subject: Re: [rt.cpan.org #91527] AutoReply: CommitBuild fatal: Cannot lock the ref when on tag
Date: Thu, 19 Dec 2013 16:43:04 -0600
To: bug-Dist-Zilla-Plugin-Git [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
apparently it happens on regular branches too https://travis-ci.org/xenoterracide/Dist-Zilla-Plugin-Test-PodSpelling/builds/15736728 On Thu, Dec 19, 2013 at 4:05 PM, Bugs in Dist-Zilla-Plugin-Git via RT < bug-Dist-Zilla-Plugin-Git@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "CommitBuild fatal: Cannot lock the ref when on tag", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #91527]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=91527 > > Please include the string: > > [rt.cpan.org #91527] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Dist-Zilla-Plugin-Git@rt.cpan.org > > ------------------------------------------------------------------------- > https://github.com/travis-ci/travis-ci/issues/1768 > > fatal: Cannot lock the ref 'refs/heads/build/tags/0.10^0'. > > git clone --depth=50 --branch=0.10 git:// > > github.com/xenoterracide/Dist-Zilla-Plugin-Test-EOL.gitxenoterracide/Dist-Zilla-Plugin-Test-EOL > > what travis is doing is checking out into a detached state, CommitBuild > can't handle this and so it dies, instead it should probably warn and > continue. > -- > Caleb Cushing > > http://xenoterracide.com > > Calendar: > > https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago >
-- Caleb Cushing http://xenoterracide.com Calendar: https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago

I've had this problem very often.

 

I suspect its because when you're in detached head state, the description of the "head" is  something like   foobar^

So of course, making a branch like  build/foobar^  results in git going "Wat? cr... a branch, but the branch name is a head, d... NOPE".

 

My solution to this is to hack around travis's weird behaviour, by aggressively trying to make the git repository appear identically to how it did when the commit occurred.

https://travis-ci.org/kentfredric/Dist-Zilla-PluginBundle-Author-KENTNL/jobs/15854342#L66

Yeh, you'll see I'm also walking the branches for tags to nuke tags that are newer than the commit, because travis will still fetch those tags and git will still see them, so anything tag based will have fun times too!

Also, this appears to be the second time you've reported the same bug :)

 

https://rt.cpan.org/Ticket/Display.html?id=62766

CC: KENTNL [...] cpan.org
Subject: Re: [rt.cpan.org #91527] CommitBuild fatal: Cannot lock the ref when on tag
Date: Tue, 24 Dec 2013 22:57:18 -0600
To: bug-Dist-Zilla-Plugin-Git [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
On Sun, Dec 22, 2013 at 3:47 PM, Kent Fredric via RT < bug-Dist-Zilla-Plugin-Git@rt.cpan.org> wrote: Show quoted text
> Also, this appears to be the second time you've reported the same bug :) >
I'm not 100% sure if it's the same bug as then. I think it's just the same symptom. I certainly wasn't using travis then. -- Caleb Cushing http://xenoterracide.com Calendar: https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago