Allow commits on any unparented branch#355
Conversation
|
@nulltoken ok - I marked the property as obsolete and removed most of the places we use this property internally. There is one place that I do not quite understand the code yet, so I left it as is for now (in |
|
@nulltoken I don't see anything in git-tfs that uses |
|
@jamill I do like this very much!
This is indeed a very crappy and fragile piece of code. This comes from #30. If you comment out the code that returns If you can think of a safer implementation, that would be awesome! |
|
Very thoughtful job! Merged. 🎱 :
The |
LibGit2Sharp will currently only allow a commit on an "orphaned" or unparented branch if the libgit2 repository is "empty" - in particular, an initial commit is only allowed on the "master" branch.
This PR changes the condition that is checked for the initial commit to see if the current branch is orphaned.