From 29ce25a04021f6455145798aad1a9d91e6512140 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 30 Dec 2015 00:13:05 -0500 Subject: [PATCH] Allow updating submodules at any revision Using `--depth=1` breaks any submodules that are not at HEAD --- plugins/git/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/commands b/plugins/git/commands index d25cfc675..de3efb571 100755 --- a/plugins/git/commands +++ b/plugins/git/commands @@ -27,7 +27,7 @@ git_build_app_repo() { git remote add origin "$DOKKU_ROOT/$APP" &> /dev/null git fetch --depth=1 origin "refs/tags/$TMP_TAG" &> /dev/null git reset --hard FETCH_HEAD &> /dev/null - git submodule update --init --recursive --depth=1 &> /dev/null + git submodule update --init --recursive &> /dev/null GIT_DIR="$DOKKU_ROOT/$APP" git tag -d "$TMP_TAG" &> /dev/null || true find -name .git -prune -exec rm -rf {} \; > /dev/null