Question

I am try to merge branch on a bare repository by libgit2sharp, but throw an exception:

An unhandled exception of type 'LibGit2Sharp.BareRepositoryException' occurred in LibGit2Sharp.dll
Additional information: An error was raised by libgit2. Category = Repository (BareRepo).

I have googled this question, looks like the answer is we can't merging on a bare repository. Is there a way let libgit2 to support bare-merging? How if we can?

Was it helpful?

Solution

There is no way currently, but see the request at #2119 and its implementation at #2140.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top