diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-04-28 08:55:07 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-28 08:55:07 -0400 |
commit | 979484d9e72b1847c706698456552f223c0d8c4d (patch) | |
tree | dbbe9d529ffeece54d5d6a9e301913523555790b | |
parent | d1262d2fbc7bee6290a8e3a23734d2803c70c1c2 (diff) |
also clone submodules
-rw-r--r-- | larbs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -143,7 +143,7 @@ putgitrepo() { # Downloads a gitrepo $1 and places the files in $2 only overwrit dir=$(mktemp -d) [ ! -d "$2" ] && mkdir -p "$2" chown -R "$name":wheel "$dir" "$2" - sudo -u "$name" git clone -b "$branch" --depth 1 "$1" "$dir" >/dev/null 2>&1 + sudo -u "$name" git clone --recursive -b "$branch" --depth 1 "$1" "$dir" >/dev/null 2>&1 sudo -u "$name" cp -rfT "$dir" "$2" } |