Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/run-from-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ fi
if command -v git &>/dev/null; then
declare gitdir
if gitdir="$(git rev-parse --absolute-git-dir 2>/dev/null)"; then
if [[ "${gitdir%"/.git/"*}" != "${root}" ]]; then
# if the apps repo is a submodule in CK8S_CONFIG_PATH we do not mount it here
if [[ "${gitdir%"/.git/"*}" != "${root}" ]] && [[ "${gitdir%"/.git/"*}" != "${CK8S_CONFIG_PATH:-}" ]]; then
# Prepare container repo root
args+=("--mount" "type=bind,src=${gitdir%"/.git/"*},dst=${gitdir%"/.git/"*}${relabel:-}")
fi
Expand Down