[roll] Roll infra/recipes [git] Disallow using start_dir as checkout root

(Applies the same fix to the `git` module as fxrev.dev/627641 applied to
the `checkout` module.)

Recipes tend to use start_dir as a dumping ground for various temporary
files and CIPD packages, which pollutes any checkouts that are rooted in
start_dir.

Rooting a checkout in start_dir also lets a recipe implicitly run later
commands in the checkout directory without using `api.context(cwd=...)`,
making the recipe implicitly dependent on start_dir being the checkout
directory. It's better to force each recipe to be explicit about which
commands need to run in the checkout directory.

And since it can be annoying to choose which directory to use for a
checkout, add logic to construct a default checkout directory name based
on the remote URL.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/recipes/+/627642
Original-Revision: d12c20c50dad0c8b485a8d57dfa92acb64964fd9
GitOrigin-RevId: 8599a2e7da1473aa8c30b479f3858539e124afcf
Change-Id: I7b2d394d51227aef977aef9d479be3909c72e4b9
1 file changed
tree: 707b849a1755d4fa92bc1e5ed696264cd404c0bd
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.