git.bzl: correctly quote shallow_since

...while still accepting that the parameter might be missing; in the
latter case, an empty argument was added, causing that invocation of
git to fail. Note, however, that the problem is of purely aesthetic
nature, as
- the empty argument would only be added if no information about
  shallow cloning can is available
- upon error, a retry without the shallow information would be made
  anyway to support older versions of git.
Nevertheless, let's not call processes in a way we know is bound to
fail; do this by moving the necessary quoting to the definition of
the "shallow" variable, rather than at its interpolation into the
shell command.

Fixes #8384.

Change-Id: Id47e2c511678018c48686ec17ab03a59486bcb84
PiperOrigin-RevId: 250891894
1 file changed
tree: 01b0c66345bd7d2a4f91559926fc82a48fc5b0c9
  1. .bazelci/
  2. examples/
  3. scripts/
  4. site/
  5. src/
  6. third_party/
  7. tools/
  8. .bazelrc
  9. .gitattributes
  10. .gitignore
  11. AUTHORS
  12. BUILD
  13. CHANGELOG.md
  14. CODEOWNERS
  15. combine_distfiles.py
  16. combine_distfiles_to_tar.sh
  17. compile.sh
  18. CONTRIBUTING.md
  19. CONTRIBUTORS
  20. distdir.bzl
  21. ISSUE_TEMPLATE.md
  22. LICENSE
  23. README.md
  24. WORKSPACE
README.md

Bazel

{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.

Getting Started

Documentation

Contributing to Bazel

See CONTRIBUTING.md

Build status

Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.