#199 new

Git checkout fails sometime

Reported by ElectroNick | February 9th, 2010 @ 01:29 AM


In one of my current projects git branch -a shows something like this:

In this circumstances integrity is unable to checkout master branch correctly and error looks something like this:

E, [2010-02-09T00:14:33.008798 #29523] ERROR -- : Exception occured during build: Couldn't run (git clone git@github.com:tinymassive/biggy_smalls.git builds/git-github-com-tinymassive-biggy_smalls-git-master/5390b9df590ed3024e1d89e4c71027c9b5ab757b<br/> 0747f223dca9ca48dce7097abd37be5d46868e50 > /dev/null 2>&1)

Below is possible fix:

diff --git a/lib/integrity/repository.rb b/lib/integrity/repository.rb
index 1476f8b..1c4660b 100644
--- a/lib/integrity/repository.rb +++ b/lib/integrity/repository.rb @@ -24,7 +24,7 @@ module Integrity


 def head
  • git ls-remote --heads #{@uri} #{@branch} | cut -f1.chomp
  • git ls-remote --heads #{@uri} #{@branch} | cut -f1 | head -n1.chomp end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Automated continuous integration server that doesn't suck.

Shared Ticket Bins

People watching this ticket