Skip to content

Commit af8238e

Browse files
authored
Update generate.sh
git clone add `--depth 1`
1 parent 3825998 commit af8238e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: generate.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd $DOCS_DIR
1010
rm -rf java-design-patterns
1111
rm -rf patterns
1212
rm -rf zh/patterns
13-
git clone https://github.com/iluwatar/java-design-patterns.git
13+
git clone --depth 1 https://github.com/iluwatar/java-design-patterns.git
1414
cd java-design-patterns
1515
git checkout-index -a -f --prefix=../patterns/
1616
cd ../patterns
@@ -45,7 +45,7 @@ rm -rf patterns/localization
4545
rm -rf programming-principles
4646
rm -rf principles
4747
rm -rf zh/principles
48-
git clone https://github.com/iluwatar/programming-principles.git
48+
git clone --depth 1 https://github.com/iluwatar/programming-principles.git
4949
cd programming-principles
5050
git checkout-index -f --prefix=../principles/ README.md
5151

@@ -63,7 +63,7 @@ rm -rf programming-principles
6363
rm -rf 30-seconds-of-java
6464
rm -rf snippets
6565
rm -rf zh/snippets
66-
git clone https://github.com/iluwatar/30-seconds-of-java.git
66+
git clone --depth 1 https://github.com/iluwatar/30-seconds-of-java.git
6767
cd 30-seconds-of-java
6868
git checkout-index -f --prefix=../snippets/ README.md
6969

0 commit comments

Comments
 (0)