crane/checks/gitRevNoRef
Ivan Petkov f8d1e70dfc
Fix handling of git repos whose rev is not on the main branch
* When Nix fetches a git repo it will only look for the specified
  revision only starting from the main branch (apparently fetching
  arbitrary revisions from a repository has some security implications)
* If a ref (i.e. branch or tag) is not specified, Nix will only fetch
  the repo's main branch
* To remedy this we will supply Nix with the branch or tag (if specified
  in the Cargo.lock) to help it find the specified revision
* If cargo does not specify a branch or tag for us, we'll set `allRefs =
  true` so that Nix can try fetching all possible branches and tags
  before trying to check out the locked revision
2022-02-18 18:10:53 -08:00
..
src Fix handling of git repos whose rev is not on the main branch 2022-02-18 18:10:53 -08:00
Cargo.lock Fix handling of git repos whose rev is not on the main branch 2022-02-18 18:10:53 -08:00
Cargo.toml Fix handling of git repos whose rev is not on the main branch 2022-02-18 18:10:53 -08:00