Slight corner case with depth

Jeremy Pallats/starcraft.man 2015-09-01 11:58:16 -04:00
parent c20de0923a
commit ae327bd49b

20
faq.md

@ -192,3 +192,23 @@ To see if your system suffers this second problem, run these reg queries. If eit
REG QUERY "HKCU\Software\Microsoft\Command Processor" /v AutoRun
REG QUERY "HKLM\Software\Microsoft\Command Processor" /v AutoRun
```
### fatal: dumb http transport does not support --depth
Apparently the git option `--depth 1` requires SSL on the remote Git server. It is now default, to reduce download size. To get around this, you can:
**Disable Shallow Cloning**
Add `let g:plug_shallow = 0` before the `plug#end` call.
**Mirror the repository on a Git server with https (i.e. Github or BitBucket).**
Then just add it normally with the new URI.
**Mark the plugin as local/unmanaged**
a) Clone it locally to `~/.vim/plugged/plugin_name`
b) Add to the vimrc with `Plug '~/.vim/plugged/plugin_name'`.
The leading tilda tells vim-plug not to do anything other than rtp for plugin_name.