Skip to content

Commit 5993179

Browse files
committed
Only clone single branch
1 parent 3cbd905 commit 5993179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fi
8080
cat << EOF
8181
This will install the C++ submodule manager 'cppsm' command by running
8282
83-
git clone --quiet $URL "\$HOME/.cppsm"
83+
git clone --quiet --single-branch $URL "\$HOME/.cppsm"
8484
8585
and appending
8686
@@ -100,7 +100,7 @@ EOF
100100
echo
101101
fi
102102

103-
if ! git clone --quiet $URL "$HOME/.cppsm"; then
103+
if ! git clone --quiet --single-branch $URL "$HOME/.cppsm"; then
104104
fail << EOF
105105
ERROR: Failed to git clone the cppsm-cli.
106106
EOF

0 commit comments

Comments
 (0)