@@ -17,7 +17,7 @@ public class BranchFixture : BaseFixture
17
17
[ InlineData ( "Ångström" ) ]
18
18
public void CanCreateBranch ( string name )
19
19
{
20
- string path = CloneBareTestRepo ( ) ;
20
+ string path = SandboxBareTestRepo ( ) ;
21
21
using ( var repo = new Repository ( path ) )
22
22
{
23
23
EnableRefLog ( repo ) ;
@@ -50,7 +50,7 @@ public void CanCreateBranch(string name)
50
50
[ Fact ]
51
51
public void CanCreateAnUnbornBranch ( )
52
52
{
53
- string path = CloneStandardTestRepo ( ) ;
53
+ string path = SandboxStandardTestRepo ( ) ;
54
54
using ( var repo = new Repository ( path ) )
55
55
{
56
56
// No branch named orphan
@@ -85,7 +85,7 @@ public void CanCreateAnUnbornBranch()
85
85
[ Fact ]
86
86
public void CanCreateBranchUsingAbbreviatedSha ( )
87
87
{
88
- string path = CloneBareTestRepo ( ) ;
88
+ string path = SandboxBareTestRepo ( ) ;
89
89
using ( var repo = new Repository ( path ) )
90
90
{
91
91
EnableRefLog ( repo ) ;
@@ -108,7 +108,7 @@ public void CanCreateBranchUsingAbbreviatedSha()
108
108
[ InlineData ( "master" ) ]
109
109
public void CanCreateBranchFromImplicitHead ( string headCommitOrBranchSpec )
110
110
{
111
- string path = CloneStandardTestRepo ( ) ;
111
+ string path = SandboxStandardTestRepo ( ) ;
112
112
using ( var repo = new Repository ( path ) )
113
113
{
114
114
EnableRefLog ( repo ) ;
@@ -136,7 +136,7 @@ public void CanCreateBranchFromImplicitHead(string headCommitOrBranchSpec)
136
136
[ InlineData ( "master" ) ]
137
137
public void CanCreateBranchFromExplicitHead ( string headCommitOrBranchSpec )
138
138
{
139
- string path = CloneStandardTestRepo ( ) ;
139
+ string path = SandboxStandardTestRepo ( ) ;
140
140
using ( var repo = new Repository ( path ) )
141
141
{
142
142
EnableRefLog ( repo ) ;
@@ -157,7 +157,7 @@ public void CanCreateBranchFromExplicitHead(string headCommitOrBranchSpec)
157
157
[ Fact ]
158
158
public void CanCreateBranchFromCommit ( )
159
159
{
160
- string path = CloneBareTestRepo ( ) ;
160
+ string path = SandboxBareTestRepo ( ) ;
161
161
using ( var repo = new Repository ( path ) )
162
162
{
163
163
EnableRefLog ( repo ) ;
@@ -177,7 +177,7 @@ public void CanCreateBranchFromCommit()
177
177
[ Fact ]
178
178
public void CanCreateBranchFromRevparseSpec ( )
179
179
{
180
- string path = CloneBareTestRepo ( ) ;
180
+ string path = SandboxBareTestRepo ( ) ;
181
181
using ( var repo = new Repository ( path ) )
182
182
{
183
183
EnableRefLog ( repo ) ;
@@ -200,7 +200,7 @@ public void CanCreateBranchFromRevparseSpec()
200
200
[ InlineData ( "refs/tags/test" ) ]
201
201
public void CreatingABranchFromATagPeelsToTheCommit ( string committish )
202
202
{
203
- string path = CloneBareTestRepo ( ) ;
203
+ string path = SandboxBareTestRepo ( ) ;
204
204
using ( var repo = new Repository ( path ) )
205
205
{
206
206
EnableRefLog ( repo ) ;
@@ -220,7 +220,7 @@ public void CreatingABranchFromATagPeelsToTheCommit(string committish)
220
220
[ Fact ]
221
221
public void CreatingABranchTriggersTheCreationOfADirectReference ( )
222
222
{
223
- string path = CloneBareTestRepo ( ) ;
223
+ string path = SandboxBareTestRepo ( ) ;
224
224
using ( var repo = new Repository ( path ) )
225
225
{
226
226
Branch newBranch = repo . CreateBranch ( "clone-of-master" ) ;
@@ -293,7 +293,7 @@ public void CanListAllBranches()
293
293
[ Fact ]
294
294
public void CanListBranchesWithRemoteAndLocalBranchWithSameShortName ( )
295
295
{
296
- string path = CloneStandardTestRepo ( ) ;
296
+ string path = SandboxStandardTestRepo ( ) ;
297
297
using ( var repo = new Repository ( path ) )
298
298
{
299
299
// Create a local branch with the same short name as a remote branch.
@@ -404,7 +404,7 @@ public void QueryRemoteForRemoteBranch()
404
404
[ Fact ]
405
405
public void QueryUnresolvableRemoteForRemoteBranch ( )
406
406
{
407
- var path = CloneStandardTestRepo ( ) ;
407
+ var path = SandboxStandardTestRepo ( ) ;
408
408
409
409
var fetchRefSpecs = new string [ ] { "+refs/heads/notfound/*:refs/remotes/origin/notfound/*" } ;
410
410
@@ -429,7 +429,7 @@ public void QueryUnresolvableRemoteForRemoteBranch()
429
429
[ Fact ]
430
430
public void QueryAmbigousRemoteForRemoteBranch ( )
431
431
{
432
- var path = CloneStandardTestRepo ( ) ;
432
+ var path = SandboxStandardTestRepo ( ) ;
433
433
434
434
var fetchRefSpec = "+refs/heads/*:refs/remotes/origin/*" ;
435
435
var url = "http://github.com/libgit2/TestGitRepository" ;
@@ -485,7 +485,7 @@ public void CanLookupLocalBranch()
485
485
[ Fact ]
486
486
public void CanLookupABranchWhichNameIsMadeOfNon7BitsAsciiCharacters ( )
487
487
{
488
- string path = CloneBareTestRepo ( ) ;
488
+ string path = SandboxBareTestRepo ( ) ;
489
489
using ( var repo = new Repository ( path ) )
490
490
{
491
491
const string name = "Ångström" ;
@@ -539,7 +539,7 @@ public void CanGetInformationFromUnbornBranch()
539
539
[ Fact ]
540
540
public void CanGetTrackingInformationFromBranchSharingNoHistoryWithItsTrackedBranch ( )
541
541
{
542
- string path = CloneStandardTestRepo ( ) ;
542
+ string path = SandboxStandardTestRepo ( ) ;
543
543
using ( var repo = new Repository ( path ) )
544
544
{
545
545
Branch master = repo . Branches [ "master" ] ;
@@ -565,7 +565,7 @@ public void CanGetTrackingInformationFromBranchSharingNoHistoryWithItsTrackedBra
565
565
[ Fact ]
566
566
public void TrackingInformationIsEmptyForBranchTrackingPrunedRemoteBranch ( )
567
567
{
568
- var path = CloneStandardTestRepo ( ) ;
568
+ var path = SandboxStandardTestRepo ( ) ;
569
569
using ( var repo = new Repository ( path ) )
570
570
{
571
571
const string remoteRef = "refs/remotes/origin/master" ;
@@ -660,7 +660,7 @@ public void CanSetTrackedBranch()
660
660
const string testBranchName = "branchToSetUpstreamInfoFor" ;
661
661
const string trackedBranchName = "refs/remotes/origin/master" ;
662
662
663
- string path = CloneStandardTestRepo ( ) ;
663
+ string path = SandboxStandardTestRepo ( ) ;
664
664
using ( var repo = new Repository ( path ) )
665
665
{
666
666
Branch branch = repo . CreateBranch ( testBranchName ) ;
@@ -692,7 +692,7 @@ public void SetTrackedBranchForUnreasolvableRemoteThrows()
692
692
const string trackedBranchName = "refs/remotes/origin/master" ;
693
693
var fetchRefSpecs = new string [ ] { "+refs/heads/notfound/*:refs/remotes/origin/notfound/*" } ;
694
694
695
- string path = CloneStandardTestRepo ( ) ;
695
+ string path = SandboxStandardTestRepo ( ) ;
696
696
using ( var repo = new Repository ( path ) )
697
697
{
698
698
// Modify the fetch spec so that the remote for the remote-tracking branch
@@ -720,7 +720,7 @@ public void CanSetUpstreamBranch()
720
720
const string trackedBranchName = "refs/remotes/origin/master" ;
721
721
const string remoteName = "origin" ;
722
722
723
- string path = CloneStandardTestRepo ( ) ;
723
+ string path = SandboxStandardTestRepo ( ) ;
724
724
using ( var repo = new Repository ( path ) )
725
725
{
726
726
Branch branch = repo . CreateBranch ( testBranchName ) ;
@@ -750,7 +750,7 @@ public void CanSetLocalTrackedBranch()
750
750
const string testBranchName = "branchToSetUpstreamInfoFor" ;
751
751
const string localTrackedBranchName = "refs/heads/master" ;
752
752
753
- string path = CloneStandardTestRepo ( ) ;
753
+ string path = SandboxStandardTestRepo ( ) ;
754
754
using ( var repo = new Repository ( path ) )
755
755
{
756
756
Branch branch = repo . CreateBranch ( testBranchName ) ;
@@ -788,7 +788,7 @@ public void CanUnsetTrackedBranch()
788
788
const string testBranchName = "branchToSetUpstreamInfoFor" ;
789
789
const string trackedBranchName = "refs/remotes/origin/master" ;
790
790
791
- string path = CloneStandardTestRepo ( ) ;
791
+ string path = SandboxStandardTestRepo ( ) ;
792
792
using ( var repo = new Repository ( path ) )
793
793
{
794
794
Branch branch = repo . CreateBranch ( testBranchName ) ;
@@ -822,7 +822,7 @@ public void CanWalkCommitsFromBranch()
822
822
823
823
private void AssertRemoval ( string branchName , bool isRemote , bool shouldPreviouslyAssertExistence )
824
824
{
825
- string path = CloneStandardTestRepo ( ) ;
825
+ string path = SandboxStandardTestRepo ( ) ;
826
826
using ( var repo = new Repository ( path ) )
827
827
{
828
828
if ( shouldPreviouslyAssertExistence )
@@ -849,7 +849,7 @@ public void CanRemoveAnExistingNamedBranch(string branchName, bool isRemote)
849
849
[ InlineData ( "origin/br2" ) ]
850
850
public void CanRemoveAnExistingBranch ( string branchName )
851
851
{
852
- string path = CloneStandardTestRepo ( ) ;
852
+ string path = SandboxStandardTestRepo ( ) ;
853
853
using ( var repo = new Repository ( path ) )
854
854
{
855
855
Branch curBranch = repo . Branches [ branchName ] ;
@@ -919,7 +919,7 @@ public void OnlyOneBranchIsTheHead()
919
919
[ Fact ]
920
920
public void TwoBranchesPointingAtTheSameCommitAreNotBothCurrent ( )
921
921
{
922
- string path = CloneBareTestRepo ( ) ;
922
+ string path = SandboxBareTestRepo ( ) ;
923
923
using ( var repo = new Repository ( path ) )
924
924
{
925
925
Branch master = repo . Branches [ "refs/heads/master" ] ;
@@ -932,7 +932,7 @@ public void TwoBranchesPointingAtTheSameCommitAreNotBothCurrent()
932
932
[ Fact ]
933
933
public void CanRenameABranch ( )
934
934
{
935
- string path = CloneBareTestRepo ( ) ;
935
+ string path = SandboxBareTestRepo ( ) ;
936
936
using ( var repo = new Repository ( path ) )
937
937
{
938
938
EnableRefLog ( repo ) ;
@@ -966,7 +966,7 @@ public void BlindlyRenamingABranchOverAnExistingOneThrows()
966
966
[ Fact ]
967
967
public void CanRenameABranchWhileOverwritingAnExistingOne ( )
968
968
{
969
- string path = CloneBareTestRepo ( ) ;
969
+ string path = SandboxBareTestRepo ( ) ;
970
970
using ( var repo = new Repository ( path ) )
971
971
{
972
972
EnableRefLog ( repo ) ;
@@ -998,7 +998,7 @@ public void CanRenameABranchWhileOverwritingAnExistingOne()
998
998
[ Fact ]
999
999
public void DetachedHeadIsNotATrackingBranch ( )
1000
1000
{
1001
- string path = CloneStandardTestRepo ( ) ;
1001
+ string path = SandboxStandardTestRepo ( ) ;
1002
1002
using ( var repo = new Repository ( path ) )
1003
1003
{
1004
1004
repo . Reset ( ResetMode . Hard ) ;
@@ -1095,7 +1095,7 @@ private static T[] SortedBranches<T>(IEnumerable<Branch> branches, Func<Branch,
1095
1095
[ Fact ]
1096
1096
public void CreatingABranchIncludesTheCorrectReflogEntries ( )
1097
1097
{
1098
- string path = CloneStandardTestRepo ( ) ;
1098
+ string path = SandboxStandardTestRepo ( ) ;
1099
1099
using ( var repo = new Repository ( path ) )
1100
1100
{
1101
1101
EnableRefLog ( repo ) ;
@@ -1111,7 +1111,7 @@ public void CreatingABranchIncludesTheCorrectReflogEntries()
1111
1111
[ Fact ]
1112
1112
public void RenamingABranchIncludesTheCorrectReflogEntries ( )
1113
1113
{
1114
- string path = CloneStandardTestRepo ( ) ;
1114
+ string path = SandboxStandardTestRepo ( ) ;
1115
1115
using ( var repo = new Repository ( path ) )
1116
1116
{
1117
1117
EnableRefLog ( repo ) ;
0 commit comments