charliecloud
charliecloud copied to clipboard
ch-image: build cache: move git repo out-of-band in a separate directory
See #1255.
Currently, the git repository for each image is stored in-band in the standard location, .git
at the top of the working directory. This prevents the image from having any files named .git
at the top level. We could instead put the repo somewhere else, using GIT_DIR
and GIT_WORK_TREE
environment variables (or --git-dir
and --git-work-tree
).
Issue #1541 describes actual breakage caused by this.
.gitignore
could go in bucache/info/exclude
.