Skip to content

Unexpected deletion related to local directory #138

@sirasagi62

Description

@sirasagi62

If a local directory is specified as the plugin path, and that directory is not managed by Git, running :JetpackSync will delete that directory.

It appears that the 'jetpack#clean_plugins()' function, which should only apply to remote plugins, is also being applied to local folders.

Reproduction Code

packadd vim-jetpack
call jetpack#begin()
Jetpack 'tani/vim-jetpack'

" ~/path/to/dir will be deleted.
Jetpack '~/path/to/dir'

" DO NOT EXECUTE:
" If you execute this, all of the user's home directory will be deleted.
"Jetpack '~'
call jetpack#end()

Note

I was unable to find information regarding the behavior when specifying a local directory in the README or help files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions