commit | 12c1602249146846320166d0207b276ad64bcae8 | [log] [tgz] |
---|---|---|
author | Ed Baunton <edbaunton@gmail.com> | Wed Nov 29 06:02:13 2017 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Wed Nov 29 06:04:13 2017 -0800 |
tree | 46ed257d8f2d6310a2ac4b479f47317e3ae03ddc | |
parent | d587e642c316f9b63b45190b30cf744a6eed858c [diff] |
Expressly fetch remote and ref when using git_repository When I clone from a git repo that doesn't have the default branch the same as the branch that I want ; it doesn't seem to fetch the appropriate branch. I am using a name rather than explicit sha. What happens is: ``` + git reset --hard build-with-bazel fatal: ambiguous argument 'build-with-bazel': unknown revision or path not in the working tree. ``` because it hasn't fetched that ref. Closes #4039. PiperOrigin-RevId: 177298578
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.