This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ private void RepositoryManager_OnCurrentBranchAndRemoteUpdated(ConfigBranch? bra
417
417
{
418
418
CurrentConfigRemote = remote ;
419
419
CurrentRemote = GetGitRemote ( remote . Value ) ;
420
- UpdateRepositoryInfo ( ) ;
420
+ ClearRepositoryInfo ( ) ;
421
421
}
422
422
} ) { Affinity = TaskAffinity . UI } . Start ( ) ;
423
423
}
@@ -460,20 +460,10 @@ private void UpdateLocalBranches()
460
460
LocalBranches = LocalConfigBranches . Values . Select ( GetLocalGitBranch ) . ToArray ( ) ;
461
461
}
462
462
463
- private void UpdateRepositoryInfo ( )
463
+ private void ClearRepositoryInfo ( )
464
464
{
465
- if ( CurrentRemote . HasValue )
466
- {
467
- CloneUrl = new UriString ( CurrentRemote . Value . Url ) ;
468
- Name = CloneUrl . RepositoryName ;
469
- Logger . Trace ( "CloneUrl: {0}" , CloneUrl . ToString ( ) ) ;
470
- }
471
- else
472
- {
473
- CloneUrl = null ;
474
- Name = LocalPath . FileName ;
475
- Logger . Trace ( "CloneUrl: [NULL]" ) ;
476
- }
465
+ CloneUrl = new UriString ( CurrentRemote . Value . Url ) ;
466
+ Name = CloneUrl . RepositoryName ;
477
467
}
478
468
479
469
private void RepositoryManager_OnLocalBranchRemoved ( string name )
You can’t perform that action at this time.
0 commit comments