Bug 353 - Need way to disable Source Control on Solutions
Summary: Need way to disable Source Control on Solutions
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: unspecified
Hardware: All All
: Low enhancement
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2011-08-20 14:25 UTC by Anonymous
Modified: 2013-08-12 07:50 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Anonymous 2011-08-20 14:25:36 UTC
There doesn't seem to be a way disable source control on a solution.  Even I don't CHECK the box when I create a solution it seems to be turned on when it detects it.  This is a huge issue.

Case and point, if I am using an external Git client either command-line or otherwise, MD tries to use it and I can't find a way to make it ignore it or disable trying. This makes MD with Git incompatible with using external tools, its makes it seem as if you use Git you want to use MD you have to have MD create and manage the Git repo form the start.  It has issue not only recognizing and using existing Git but it throws exceptions putting MD in an unstable state.

I have had to switch to MD 2.4.2 which doesn't have Git so that I can continue working with one of my repo's on GitHub and I am using GitHub Mac client and command line to manage.  If 2.8 had a way to disable Git then I would be able to go back to it.  

This will become an issue when I go back to my MonoTouch project and want to use Git as I want to use iOS5 beta and XCode 4.2 with MD 2.8 alpha 1 but it crashes as another bug I created yesterday explains.
Comment 1 Mikayla Hutchinson [MSFT] 2011-08-20 15:22:37 UTC
MonoDevelop doesn't use external git tools, it uses the same git repository definition that all git tools use. Git support isn't a property of the solution, it's a property of the directory it's in. If a directory is a git repository, all git clients - and that includes MD - will consider it to be a git repository.

I'm sorry to hear that you are encountering bugs in MD's git support, but adding an option to disable it for individual projects isn't a real solution to such issues. If you could file specific issues, then that would enable us to fix them. 

As a workaround, you can disable MonoDevelop's git integration entirely using the Addin Manager.
Comment 2 Anonymous 2011-08-20 17:25:23 UTC
I know MD doesn't use external Git tools, I want to use them without conflict.  

As a user I would like control over which Git tool I use, and since the MD one isn't work I would like to have control to disable Git in MD. Basically have it just ignore that Git is there.  This is not a crazy request, especially since the only work around is to go back in time an use 2.4.2 which is hard to use after using 2.6, which has the same issue with Git as 2.8.

I have files specific issues as I stated. Bug 350 details the Git exceptions issue.

Also per your recommendation I did try disabling Git in the Add-in manager and it created a new problem. This time I get a different exception when I open the a solution:

     InvalidOperationException "Disabled add-ins can't be loaded."

And the the Solution Explorer is empty so I cannot actually do anything with the solution or projects.

So there is another issue now with disabled add-ins. Which if this worked I would very happy with that solution to just turn Git off for all of MD until it is fixed.
Comment 3 Miguel de Icaza [MSFT] 2011-08-20 21:33:10 UTC
I created a new bug to track the issue about "Disabled add-ins cant' be loaded", we should track that discussion there: bug #354
Comment 4 Marius Ungureanu 2013-08-12 07:50:34 UTC
#354 is fixed so I think this can be safely closed.