Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "bashbrew fetch" command #63

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Commits on Jan 30, 2023

  1. Add "bashbrew fetch" command

    In many, many, many scripts I have encoded the horrible assumption that `ArchDockerFroms` will ensure our Git repository is fetched (which is a side-effect of that function).  With the implementation of `Builder: oci-import`, that side effect is not necessary for returning an accurate result in these new images.  Instead of working around this in bad ways, I've decided to finally bite the bullet and add an explicit `bashbrew fetch` command that can make sure all the underlying Git commits are fully fetched into the local cache.
    tianon committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    c7d3d0d View commit details
    Browse the repository at this point in the history
  2. Add "gitCache" template function

    This not only returns the path to the "git cache" directory, but ensures it is initialized and that `git` commands against it will generally succeed.
    tianon committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    cec429f View commit details
    Browse the repository at this point in the history