monodevelop
monodevelop copied to clipboard
[Version Control] If the Repository has no remotes, disable remote commands and show publish command
If the Repository has no remotes, we already disabled options like push, etc. With this changes we add the option to publish visible without any remotes.
Fixes gh #7176
@sevoku can you review?
Thanks for the feedback @sevoku!. I have applied new changes. First of all, in the dialog to publish (disabled tabs, hidden combo to select VCS, etc.).
On the other hand, in the OnPublish method from the GitRepository we avoid initialize the repository if it already exists and check if there are any pending local change to commit. Of course, we add the remote if it does not exist, etc.
I have made rebase and squash of this branch. I have also removed changes that only related with code format (spaces, etc).