Created
October 21, 2014 22:57
-
-
Save magnetikonline/50e0e9a2b3837110ba0d to your computer and use it in GitHub Desktop.
Git shallow clone repository and any sub-modules within.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone --depth 1 \ | |
-qb $BRANCH_NAME \ | |
$REPOSITORY_URL $TARGET_CLONE_DIR | |
cd $TARGET_CLONE_DIR | |
git submodule update -q --init --depth 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment