@@ -394,7 +394,7 @@ public void CanResolveRemote()
394
394
using ( var repo = new Repository ( path ) )
395
395
{
396
396
Branch master = repo . Branches [ "master" ] ;
397
- Assert . Equal ( repo . Network . Remotes [ "origin" ] , master . Remote ) ;
397
+ Assert . Equal ( "origin" , master . RemoteName ) ;
398
398
}
399
399
}
400
400
@@ -405,7 +405,7 @@ public void RemoteAndUpstreamBranchCanonicalNameForNonTrackingBranchIsNull()
405
405
using ( var repo = new Repository ( path ) )
406
406
{
407
407
Branch test = repo . Branches [ "i-do-numbers" ] ;
408
- Assert . Null ( test . Remote ) ;
408
+ Assert . Null ( test . RemoteName ) ;
409
409
Assert . Null ( test . UpstreamBranchCanonicalName ) ;
410
410
}
411
411
}
@@ -418,7 +418,7 @@ public void QueryRemoteForLocalTrackingBranch()
418
418
using ( var repo = new Repository ( path ) )
419
419
{
420
420
Branch trackLocal = repo . Branches [ "track-local" ] ;
421
- Assert . Null ( trackLocal . Remote ) ;
421
+ Assert . Null ( trackLocal . RemoteName ) ;
422
422
}
423
423
}
424
424
@@ -440,7 +440,7 @@ public void QueryRemoteForRemoteBranch()
440
440
using ( var repo = new Repository ( path ) )
441
441
{
442
442
var master = repo . Branches [ "origin/master" ] ;
443
- Assert . Equal ( repo . Network . Remotes [ "origin" ] , master . Remote ) ;
443
+ Assert . Equal ( "origin" , master . RemoteName ) ;
444
444
}
445
445
}
446
446
@@ -464,7 +464,7 @@ public void QueryUnresolvableRemoteForRemoteBranch()
464
464
Assert . NotNull ( branch ) ;
465
465
Assert . True ( branch . IsRemote ) ;
466
466
467
- Assert . Null ( branch . Remote ) ;
467
+ Assert . Null ( branch . RemoteName ) ;
468
468
}
469
469
}
470
470
@@ -486,7 +486,7 @@ public void QueryAmbigousRemoteForRemoteBranch()
486
486
Assert . NotNull ( branch ) ;
487
487
Assert . True ( branch . IsRemote ) ;
488
488
489
- Assert . Null ( branch . Remote ) ;
489
+ Assert . Null ( branch . RemoteName ) ;
490
490
}
491
491
}
492
492
@@ -732,7 +732,7 @@ public void CanSetTrackedBranch()
732
732
733
733
Assert . True ( branch . IsTracking ) ;
734
734
Assert . Equal ( trackedBranch , branch . TrackedBranch ) ;
735
- Assert . Equal ( upstreamRemote , branch . Remote ) ;
735
+ Assert . Equal ( "origin" , branch . RemoteName ) ;
736
736
}
737
737
}
738
738
@@ -793,7 +793,7 @@ public void CanSetUpstreamBranch()
793
793
Assert . True ( updatedBranch . IsTracking ) ;
794
794
Assert . Equal ( trackedBranch , updatedBranch . TrackedBranch ) ;
795
795
Assert . Equal ( upstreamBranchName , updatedBranch . UpstreamBranchCanonicalName ) ;
796
- Assert . Equal ( upstreamRemote , updatedBranch . Remote ) ;
796
+ Assert . Equal ( remoteName , updatedBranch . RemoteName ) ;
797
797
}
798
798
}
799
799
@@ -820,7 +820,7 @@ public void CanSetLocalTrackedBranch()
820
820
821
821
// Branches that track the local remote do not have the "Remote" property set.
822
822
// Verify (through the configuration entry) that the local remote is set as expected.
823
- Assert . Null ( branch . Remote ) ;
823
+ Assert . Null ( branch . RemoteName ) ;
824
824
ConfigurationEntry < string > remoteConfigEntry = repo . Config . Get < string > ( "branch" , testBranchName , "remote" ) ;
825
825
Assert . NotNull ( remoteConfigEntry ) ;
826
826
Assert . Equal ( "." , remoteConfigEntry . Value ) ;
@@ -861,7 +861,7 @@ public void CanUnsetTrackedBranch()
861
861
862
862
// Verify this is no longer a tracking branch
863
863
Assert . False ( branch . IsTracking ) ;
864
- Assert . Null ( branch . Remote ) ;
864
+ Assert . Null ( branch . RemoteName ) ;
865
865
Assert . Null ( branch . UpstreamBranchCanonicalName ) ;
866
866
}
867
867
}
@@ -1134,8 +1134,7 @@ public void TrackedBranchExistsFromDefaultConfigInEmptyClone()
1134
1134
Assert . Null ( repo . Head . TrackingDetails . BehindBy ) ;
1135
1135
Assert . Null ( repo . Head . TrackingDetails . CommonAncestor ) ;
1136
1136
1137
- Assert . NotNull ( repo . Head . Remote ) ;
1138
- Assert . Equal ( "origin" , repo . Head . Remote . Name ) ;
1137
+ Assert . Equal ( "origin" , repo . Head . RemoteName ) ;
1139
1138
1140
1139
Touch ( repo . Info . WorkingDirectory , "a.txt" , "a" ) ;
1141
1140
repo . Stage ( "a.txt" ) ;
@@ -1163,7 +1162,7 @@ public void RemoteBranchesDoNotTrackAnything()
1163
1162
foreach ( var branch in branches )
1164
1163
{
1165
1164
Assert . True ( branch . IsRemote ) ;
1166
- Assert . NotNull ( branch . Remote ) ;
1165
+ Assert . NotNull ( branch . RemoteName ) ;
1167
1166
Assert . False ( branch . IsTracking ) ;
1168
1167
Assert . Null ( branch . TrackedBranch ) ;
1169
1168
0 commit comments