mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Slight corner case with depth
parent
c20de0923a
commit
ae327bd49b
22
faq.md
22
faq.md
@ -191,4 +191,24 @@ To see if your system suffers this second problem, run these reg queries. If eit
|
||||
```batch
|
||||
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.
|
Loading…
Reference in New Issue
Block a user