@@ -15,7 +15,7 @@ public void NormalisationOfPullRequestsWithFetch()
15
15
{
16
16
fixture . Repository . MakeACommit ( ) ;
17
17
18
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
18
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
19
19
fixture . Repository . MakeACommit ( ) ;
20
20
var commit = fixture . Repository . CreatePullRequestRef ( "feature/foo" , "master" , prNumber : 3 ) ;
21
21
using ( var localFixture = fixture . CloneRepository ( ) )
@@ -36,7 +36,7 @@ public void NormalisationOfPullRequestsWithoutFetch()
36
36
{
37
37
fixture . Repository . MakeACommit ( ) ;
38
38
39
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
39
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
40
40
fixture . Repository . MakeACommit ( ) ;
41
41
var commit = fixture . Repository . CreatePullRequestRef ( "feature/foo" , "master" , prNumber : 3 , allowFastFowardMerge : true ) ;
42
42
using ( var localFixture = fixture . CloneRepository ( ) )
@@ -57,7 +57,7 @@ public void NormalisationOfTag()
57
57
{
58
58
fixture . Repository . MakeACommit ( ) ;
59
59
60
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
60
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
61
61
fixture . Repository . MakeACommit ( ) ;
62
62
63
63
fixture . BranchTo ( "release/2.0.0" ) ;
@@ -85,16 +85,16 @@ public void UpdatesCurrentBranch()
85
85
using ( var fixture = new EmptyRepositoryFixture ( ) )
86
86
{
87
87
fixture . Repository . MakeACommit ( ) ;
88
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "develop" ) ) ;
88
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "develop" ) ) ;
89
89
fixture . Repository . MakeACommit ( ) ;
90
- fixture . Repository . Checkout ( "master" ) ;
90
+ Commands . Checkout ( fixture . Repository , "master" ) ;
91
91
using ( var localFixture = fixture . CloneRepository ( ) )
92
92
{
93
93
// Advance remote
94
- fixture . Repository . Checkout ( "develop" ) ;
94
+ Commands . Checkout ( fixture . Repository , "develop" ) ;
95
95
var advancedCommit = fixture . Repository . MakeACommit ( ) ;
96
96
Commands . Fetch ( ( Repository ) localFixture . Repository , localFixture . Repository . Network . Remotes [ "origin" ] . Name , new string [ 0 ] , null , null ) ;
97
- localFixture . Repository . Checkout ( advancedCommit . Sha ) ;
97
+ Commands . Checkout ( localFixture . Repository , advancedCommit . Sha ) ;
98
98
GitRepositoryHelper . NormalizeGitDirectory ( localFixture . RepositoryPath , new AuthenticationInfo ( ) , noFetch : false , currentBranch : "refs/heads/develop" ) ;
99
99
100
100
var normalisedBranch = localFixture . Repository . Branches [ "develop" ] ;
@@ -112,15 +112,15 @@ public void ShouldNotChangeBranchWhenNormalizingTheDirectory()
112
112
{
113
113
fixture . Repository . MakeATaggedCommit ( "v1.0.0" ) ;
114
114
115
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "develop" ) ) ;
115
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "develop" ) ) ;
116
116
var lastCommitOnDevelop = fixture . Repository . MakeACommit ( ) ;
117
117
118
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
118
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
119
119
fixture . Repository . MakeACommit ( ) ;
120
120
121
121
using ( var localFixture = fixture . CloneRepository ( ) )
122
122
{
123
- localFixture . Repository . Checkout ( "origin/develop" ) ;
123
+ Commands . Checkout ( localFixture . Repository , "origin/develop" ) ;
124
124
125
125
// Another commit on feature/foo will force an update
126
126
fixture . Checkout ( "feature/foo" ) ;
@@ -140,7 +140,7 @@ public void ShouldNotMoveLocalBranchWhenRemoteAdvances()
140
140
{
141
141
fixture . Repository . MakeACommit ( ) ;
142
142
143
- fixture . Repository . Checkout ( fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
143
+ Commands . Checkout ( fixture . Repository , fixture . Repository . CreateBranch ( "feature/foo" ) ) ;
144
144
fixture . Repository . MakeACommit ( ) ;
145
145
using ( var localFixture = fixture . CloneRepository ( ) )
146
146
{
@@ -168,7 +168,7 @@ public void CheckedOutShaShouldNotChanged()
168
168
169
169
using ( var localFixture = fixture . CloneRepository ( ) )
170
170
{
171
- localFixture . Repository . Checkout ( commitToBuild ) ;
171
+ Commands . Checkout ( localFixture . Repository , commitToBuild ) ;
172
172
GitRepositoryHelper . NormalizeGitDirectory ( localFixture . RepositoryPath , new AuthenticationInfo ( ) , noFetch : false , currentBranch : "refs/heads/master" ) ;
173
173
174
174
var normalisedBranch = localFixture . Repository . Branches [ "master" ] ;
0 commit comments