-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Refactor cloning and caching workflow (#71)
- Clone repositories into the cache with `--bare` to keep just the repo objects in cache, rather than an unused copy of the working tree. This can yield a significant space savings in repositories with large numbers of files - Clone repositories into the cache with `--filter=blob:none`. This will skip downloading any objects from the repository in the initial copy of the clone, and only populate the repository metadata; subsequent operations will automatically download the required objects (and ONLY the required objects) from origin as needed. This yields a massive space/performance boost. - Make use of the `git worktree` subcommand to populate `dstDir` targets rather than `git checkout-index`. This subcommand is designed for using a single repository as a source for multiple copies of the working tree, so it is a much better fit for what Gilt is trying to do. - Remove the now-obsolete `CloneByTag`, `Reset`, and `CheckoutIndex` workflows. With this change, the `tag:` and `sha:` directives in `Giltfile.yaml` become 100% equivalent, with no difference in handling required. Fixes: Issue #70 Co-authored-by: Nicolas Simonds <[email protected]>
- Loading branch information
Showing
16 changed files
with
236 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.