@@ -25,7 +25,7 @@ public enum SourceControlTab
25
25
UnsyncedCommits ,
26
26
Settings
27
27
}
28
-
28
+
29
29
public sealed class SourceControlViewViewModel : ViewModelBase , IDisposable
30
30
{
31
31
private readonly VBE _vbe ;
@@ -368,11 +368,11 @@ private void AddOrUpdateLocalPathConfig(Repository repo)
368
368
var existing = _config . Repositories . Single ( repository => repository . LocalLocation == repo . LocalLocation ) ;
369
369
if ( string . IsNullOrEmpty ( repo . RemoteLocation ) && ! string . IsNullOrEmpty ( existing . RemoteLocation ) )
370
370
{
371
- // config already has remote location and correct repository name - nothing to update
371
+ // config already has remote location and correct repository id - nothing to update
372
372
return ;
373
373
}
374
374
375
- existing . Name = repo . Name ;
375
+ existing . Id = repo . Id ;
376
376
existing . RemoteLocation = repo . RemoteLocation ;
377
377
378
378
_configService . Save ( _config ) ;
@@ -421,7 +421,7 @@ private void CloneRepo()
421
421
Provider = _providerFactory . CreateProvider ( _vbe . ActiveVBProject , repo , _wrapperFactory ) ;
422
422
AddOrUpdateLocalPathConfig ( new Repository
423
423
{
424
- Name = _vbe . ActiveVBProject . Name ,
424
+ Id = _vbe . ActiveVBProject . HelpFile ,
425
425
LocalLocation = repo . LocalLocation ,
426
426
RemoteLocation = repo . RemoteLocation
427
427
} ) ;
@@ -462,7 +462,7 @@ private void OpenRepoAssignedToProject()
462
462
{
463
463
OnOpenRepoStarted ( ) ;
464
464
Provider = _providerFactory . CreateProvider ( _vbe . ActiveVBProject ,
465
- _config . Repositories . First ( repo => repo . Name == _vbe . ActiveVBProject . Name ) , _wrapperFactory ) ;
465
+ _config . Repositories . First ( repo => repo . Id == _vbe . ActiveVBProject . HelpFile ) , _wrapperFactory ) ;
466
466
Status = RubberduckUI . Online ;
467
467
}
468
468
catch ( SourceControlException ex )
@@ -496,7 +496,7 @@ private bool ValidRepoExists()
496
496
return false ;
497
497
}
498
498
499
- var possibleRepos = _config . Repositories . Where ( repo => repo . Name == _vbe . ActiveVBProject . Name ) ;
499
+ var possibleRepos = _config . Repositories . Where ( repo => repo . Id == _vbe . ActiveVBProject . HelpFile ) ;
500
500
501
501
var possibleCount = possibleRepos . Count ( ) ;
502
502
@@ -544,7 +544,7 @@ public ICommand CloneRepoCommand
544
544
{
545
545
get { return _cloneRepoCommand ; }
546
546
}
547
-
547
+
548
548
private readonly ICommand _showFilePickerCommand ;
549
549
public ICommand ShowFilePickerCommand
550
550
{
0 commit comments