Skip to content

Commit

Permalink
build: faster fetch script for assets (angular#181)
Browse files Browse the repository at this point in the history
* Adds the `--depth` option when cloning the assets for the docs.
  • Loading branch information
devversion authored and jelbourn committed Jun 16, 2017
1 parent 1d5418e commit b9ff129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/fetch-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ plunkerExamplesPath=${tmpAssetClonePath}/plunker/examples/
mkdir -p ${tmpAssetClonePath}
mkdir -p ${exampleAssetsPath} ${docAssetsPath}

# Pull assets from repo and remove .git directory
git clone ${docsContentRepo} ${tmpAssetClonePath}
# Clone the assets from Github but only fetch the last commit to download less unused data.
git clone ${docsContentRepo} ${tmpAssetClonePath} --depth 1

# Copy files over to their proper place in src/assets
cp -r ${apiPath} ${overviewPath} ${guidesPath} ${docAssetsPath}
Expand Down

0 comments on commit b9ff129

Please # to comment.