[MonoDevelop] How to check out a remote branch with Git?

Robert Nordan rpvn at robpvn.net
Wed Nov 16 10:13:38 EST 2011


Hi all, I'm trying to use the MonoDevelop version control system in MD
2.8.1 to build a specific branch of Pinta but failing.

This is my approach:

1) Checkout git://github.com/PintaProject/Pinta.git , which gives me the
master branch.
2) Choose the menu Version Control -> Manage Branches and Remotes ->
Remote Sources and track release-1.1 in the local branch.
3) Choose the menu Version Control -> Switch to Branch -> release-1.1 ,
which seems to change (The title changes from Pinta (master) to Pinta
(release-1.1)) but the files do not change, so I assume it behaves like
when you create a local branch.
4) Therefore I choose the menu Version Control -> Update Solution
because I imagine it will work like "git pull origin release-1.1", but I
get this error message:

Version control operation failed: Wrong Repository State: SAFE. Wrong
Repository State: SAFE.

Details: 

NGit.Api.Errors.WrongRepositoryStateException: Wrong Repository State:
SAFE
  at NGit.Api.RebaseCommand.CheckParameters () [0x00000] in <filename
unknown>:0 
  at NGit.Api.RebaseCommand.Call () [0x00000] in <filename unknown>:0 
  at MonoDevelop.VersionControl.Git.GitRepository.Rebase (System.String
upstreamRef, Boolean saveLocalChanges, IProgressMonitor monitor)
[0x001fb]
in /usr/src/packages/BUILD/monodevelop-2.8.1/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:447 
  at MonoDevelop.VersionControl.Git.GitRepository.Update
(MonoDevelop.Core.FilePath[] localPaths, Boolean recurse,
IProgressMonitor monitor) [0x000c9]
in /usr/src/packages/BUILD/monodevelop-2.8.1/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:375 
  at MonoDevelop.VersionControl.UpdateCommand+UpdateWorker.Run ()
[0x00017]
in /usr/src/packages/BUILD/monodevelop-2.8.1/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/UpdateCommand.cs:43 
  at MonoDevelop.VersionControl.Task.BackgroundWorker (System.Object
state) [0x00000]
in /usr/src/packages/BUILD/monodevelop-2.8.1/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Task.cs:49 


Does anybody know if I'm doing something wrong or if there is something
wrong with the git integration?

-- 
Robert Nordan <rpvn at robpvn.net>



More information about the Monodevelop-list mailing list