We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2965293 + 2407477 commit 66fb1e1Copy full SHA for 66fb1e1
LibGit2Sharp.Tests/BranchFixture.cs
@@ -51,6 +51,19 @@ public void CanCreateBranch(string name)
51
}
52
53
54
+ [Theory]
55
+ [InlineData("32eab9cb1f450b5fe7ab663462b77d7f4b703344")]
56
+ public void CanHeadBeDetached(string commit)
57
+ {
58
+ string path = SandboxStandardTestRepo();
59
+ using (var repo = new Repository(path))
60
61
+ Assert.False(repo.Info.IsHeadDetached);
62
+ Commands.Checkout(repo, commit);
63
+ Assert.True(repo.Info.IsHeadDetached);
64
+ }
65
66
+
67
[Fact]
68
public void CanCreateAnUnbornBranch()
69
{
0 commit comments