File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,14 @@ public void CanListRemoteReferences(string url)
22
22
using ( var repo = new Repository ( repoPath ) )
23
23
{
24
24
Remote remote = repo . Network . Remotes . Add ( remoteName , url ) ;
25
- IEnumerable < DirectReference > references = repo . Network . ListReferences ( remote ) ;
25
+ IList < DirectReference > references = repo . Network . ListReferences ( remote ) . ToList ( ) ;
26
+
27
+ foreach ( var directReference in references )
28
+ {
29
+ // None of those references point to an existing
30
+ // object in this brand new repository
31
+ Assert . Null ( directReference . Target ) ;
32
+ }
26
33
27
34
List < Tuple < string , string > > actualRefs = references .
28
35
Select ( directRef => new Tuple < string , string > ( directRef . CanonicalName , directRef . TargetIdentifier ) ) . ToList ( ) ;
You can’t perform that action at this time.
0 commit comments