Skip to content

Commit

Permalink
Merge pull request #88 from Shopify/gg-mark-as-safe
Browse files Browse the repository at this point in the history
Mark github directory as safe for git commands
  • Loading branch information
graygilmore authored Jan 14, 2025
2 parents 1f92542 + 8b94815 commit c85b895
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ log "Will run Lighthouse CI on $host"
step "Creating development theme"

if [[ -n "${SHOP_PULL_THEME+x}" ]]; then
# `shopify theme pull` now includes Git commands and so we need to mark the
# directory as safe.
log "Marking the Github directory as safe for Git"
git config --global --add safe.directory $GITHUB_WORKSPACE

log "Pulling settings from theme $SHOP_PULL_THEME"
shopify theme pull --path "$theme_root" --theme ${SHOP_PULL_THEME} --only templates/*.json --only config/settings_data.json
fi
Expand Down

0 comments on commit c85b895

Please sign in to comment.