diff options
author | Cem Keylan <cem@ckyln.com> | 2019-12-18 10:38:49 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2019-12-18 10:38:49 +0300 |
commit | 5c121cfec1467f7a56703ca8754e1f4c091b0ff1 (patch) | |
tree | d065b5218b7dbfca452a33936dba5ccb75fe8d84 | |
parent | 0ad16b45fadaf2f4bc2d375a56919a2f204df812 (diff) | |
download | mkrootfs-5c121cfec1467f7a56703ca8754e1f4c091b0ff1.tar.gz |
do a shallow clone
-rwxr-xr-x | mkrootfs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkrootfs.sh b/mkrootfs.sh index d141380..64225d5 100755 --- a/mkrootfs.sh +++ b/mkrootfs.sh @@ -67,7 +67,7 @@ if [ -n "$REPO" ]; then rm -rf /tmp/repo git clone --depth 1 "$REPO" /tmp/repo msg "Cloning repository to /var/db/kiss/repo" - git clone "$REPO" "$MNTDIR/var/db/kiss/repo" + git clone --depth 1 "$REPO" "$MNTDIR/var/db/kiss/repo" export KISS_PATH="${HOST_REPO_PATH:-/tmp/repo/core}" else msg "REPO variable does not exist, current repository |