Skip to content

Commit

Permalink
Automatically clone submodules (#91)
Browse files Browse the repository at this point in the history
* Automatically clone submodules

* clean up
  • Loading branch information
epwalsh authored Jun 10, 2024
1 parent 2d1e666 commit 03f7bb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Git submodules of your repo will be automatically cloned.
- Added `-l/--latest`, `-w/--workspace`, and `--dry-run` options to `gantry stop` command.

### Fixed
Expand Down
17 changes: 9 additions & 8 deletions gantry/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ if [ $attempts -eq 5 ]; then
fi

git checkout "$GIT_REF"
git submodule update --init --recursive

if [[ -z "$NO_PYTHON" ]]; then
echo "
###################################
# [GANTRY] Building Python env... #
###################################
"
###################################
# [GANTRY] Building Python env... #
###################################
"

if [[ -z "$VENV_NAME" ]]; then
VENV_NAME=venv
Expand Down Expand Up @@ -149,10 +150,10 @@ if [[ -z "$NO_PYTHON" ]]; then


echo "
#############################
# [GANTRY] Environment info #
#############################
"
#############################
# [GANTRY] Environment info #
#############################
"

echo "Using $(python --version) from $(which python)"
echo "Packages:"
Expand Down

0 comments on commit 03f7bb8

Please sign in to comment.