Ludovic Courtès wrote: > Hi Nicolas, > > Nicolas Pierron <[email protected]> writes: > >> 2011/3/9 Ludovic Courtès <[email protected]>: >>> 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: I don't like that # nix-prefetch-git some_url and fetchgit { url = some_url }
result in different directories. I propose to rename nix-prefetch-git to hydra-fetch-git, and write nix-prefetch-git that does *exactly the same thing* as fetchgit does. _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
