[csw-maintainers] Problem with GIT repository cloning at github

Dagobert Michelsen dam at opencsw.org
Thu Mar 8 15:37:54 CET 2012


Hi Ben,

Am 03.03.2012 um 03:01 schrieb Ben Walton:
> Excerpts from Dagobert Michelsen's message of Fri Mar 02 16:04:41 -0500 2012:
>> I wanted to update a package which pulls a treeish directly from
>> github and it doesn't seem to work any more. The mechanism in GAR is
>> based on "git archive" something like git archive
>> --remote=git://github.com/blair/orca.git The answer from the
> 
> Ok, I cleaned up a bit of the pull code as git now sets up the origin
> remote properly in the way we use it.  That leaves the problem that
> the extract step still fails.
> 
> The VERSION in that recipe is set to a sha1 and GIT_TREEISH is set to
> VERSION.  That would work if the sha1 existed but it doesn't.  I'd set
> the version to a 'normal' value and then reference a tag in the repo
> from GIT_TREEISH (possibly automatically leveraging VERSION still).  I
> don't know what that is, but you can see the available tags with:
> 
> cd /home/src/orca.git; git --bare tag

There is no usable tag for me, upstream just doesn't do it so I am forced
to package the treeish.

> It should work once you've updated to a usable treeish.
> 
> Now why the old sha1 disappeared, I don't know.  This can only happen
> if they removed a published commit (rewrite history; push -f).
> 
> Let me know if you hit more problems with this.

Indeed I have. It should work as my treeish is directly visible from the log:

> dam at login [login]:/home/src/orca.git > git log | less
> commit ef85fa3541a6ffe83b0dacb72254056514a9e05b
> Merge: 1f8d89e f831d9b
> Author: Blair Zajac <blair at orcaware.com>
> Date:   Thu May 5 10:45:11 2011 -0700
> 
>     Merge pull request #1 from dago/master
>     
>     Add support for nxge NICs
> ...

VERSION = ef85fa3541


The extract phase still fails for me. Do you have any idea how I can fix this?


Best regards

  -- Dago


-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the maintainers mailing list