File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,19 @@ public void CanCreateBranch(string name)
51
51
}
52
52
}
53
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
+
54
67
[ Fact ]
55
68
public void CanCreateAnUnbornBranch ( )
56
69
{
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public void PatchEntryBasics()
23
23
Tree rootCommitTree = repo . Lookup < Commit > ( "f8d44d7" ) . Tree ;
24
24
Tree commitTreeWithUpdatedFile = repo . Lookup < Commit > ( "ec9e401" ) . Tree ;
25
25
26
- // Create path by diffing
26
+ // Create patch by diffing
27
27
using ( var patch = repo . Diff . Compare < Patch > ( rootCommitTree , commitTreeWithUpdatedFile ) )
28
28
{
29
29
PatchEntryChanges entryChanges = patch [ file ] ;
Original file line number Diff line number Diff line change 36
36
</ItemGroup >
37
37
38
38
<ItemGroup >
39
- <PackageReference Include =" LibGit2Sharp.NativeBinaries" Version =" [1.0.235 ]" PrivateAssets =" none" />
39
+ <PackageReference Include =" LibGit2Sharp.NativeBinaries" Version =" [1.0.245 ]" PrivateAssets =" none" />
40
40
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0-beta-63127-02" PrivateAssets =" all" />
41
41
<PackageReference Include =" Nerdbank.GitVersioning" Version =" 2.2.13" PrivateAssets =" all" />
42
42
</ItemGroup >
You can’t perform that action at this time.
0 commit comments