You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using Linux Mint 19.1 Cinnamon 64-bit.
I had my forked vim-snippets repository/plugin defined as Plugin mpkopec/vim-snippets. Since I want to commit to this repository quite often I prefer to use SSH for authentication, so I changed the plugin line to Plugin '[email protected]:mpkopec/vim-snippets.git'. Then I restarted Vim and ran :PluginUpdate.
Here comes a bug (or something I did not expect). The command has overwritten my repository, despite it having, de facto, the same origin. I know that because I lost 2 unpushed commits and around 30-40 lines of code.
To reproduce this issue, I would suggest:
making a random commit to whichever of the plugins;
do not push the commit, but change the URL in the .vimrc;
run :PluginUpdate after restarting Vim (or probably resourcing .vimrc);
check if the commit still exists in the local repo.
Is some kind of prevention for such situations in plans? IMHO, for such situation, the only thing, that should change is the origin URL in the repository.
Hello,
I am using Linux Mint 19.1 Cinnamon 64-bit.
I had my forked vim-snippets repository/plugin defined as
Plugin mpkopec/vim-snippets
. Since I want to commit to this repository quite often I prefer to use SSH for authentication, so I changed the plugin line toPlugin '[email protected]:mpkopec/vim-snippets.git'
. Then I restarted Vim and ran:PluginUpdate
.Here comes a bug (or something I did not expect). The command has overwritten my repository, despite it having, de facto, the same origin. I know that because I lost 2 unpushed commits and around 30-40 lines of code.
To reproduce this issue, I would suggest:
.vimrc
;:PluginUpdate
after restarting Vim (or probably resourcing.vimrc
);Is some kind of prevention for such situations in plans? IMHO, for such situation, the only thing, that should change is the origin URL in the repository.
The text was updated successfully, but these errors were encountered: