[Nix-dev] Re: Hydra, nix-prefetch-git, and TopGit
Ludovic Courtès
ludo at gnu.org
Fri Mar 11 10:22:33 CET 2011
Hi Nicolas,
Nicolas Pierron <nicolas.b.pierron at gmail.com> writes:
> 2011/3/9 Ludovic Courtès <ludo at gnu.org>:
>> I thought we could make ‘nix-prefetch-git’ (the script Hydra uses to
>> clone repositories) somehow fetch the TopGit branches automatically when
>> it sees ‘refs/top-bases’, but I don’t know exactly how to make it so,
>> nor whether it would even work.
>
> nix-prefect-git only download&checkout one commit at a specific
> refs/sha1 when this is possible. What you seems to want is to
> automatically build all branches matching refs/top-bases/* with Hydra.
> What you can do is use "git ls-remote" to list all branches you are
> interested in, and then add job in hydra for each of the references
> returned.
>
> git init;
> git remote add origin $url;
> git ls-remote origin 'refs/top-bases/*';
I’m thinking of changing ‘nix-prefect-git’ like this:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 446 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20110311/31c5992c/attachment.bin
-------------- next part --------------
What do you think?
TopGit would have to be installed on Hydra.
Thanks,
Ludo’.
More information about the nix-dev
mailing list