Skip to content

Commit

Permalink
Added example and documentation for shallowCloneHosts array
Browse files Browse the repository at this point in the history
See bower/bower#1764 and
bower/bower@26f80d2
for more details

The `shallowCloneHosts` array was not documented up to now.
  • Loading branch information
nwinkler committed Nov 13, 2015
1 parent d912c3c commit 26c70d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Available configuration variables, in `.bowerrc.` format:
<a href="#resolvers">"resolvers"</a>: [
"mercurial-bower-resolver"
],
<a href="#shallowCloneHosts">"shallowCloneHosts"</a>: [
"myGitHost.example.com"
]
}</code></pre>

### analytics
Expand Down Expand Up @@ -281,3 +284,16 @@ List of [Pluggable Resolvers](http://bower.io/docs/pluggable-resolvers/) to use
"mercurial-bower-resolver"
]
```

### shallowCloneHosts

`Array`

Bower's default behavior is to not use _shallow cloning_, since some Git hosts (e.g. older versions of GitHub Enterprise) fail to provide a response when asked to do a shallow clone (with `--depth 1`). This list allows to whitelist hosts that are known to support shallow cloning.


```json
"shallowCloneHosts": [
"myGitHost.example.com"
]
```

0 comments on commit 26c70d4

Please sign in to comment.