Exemplo n.º 1
0
 private void SetCloneUrl()
 {
     if (CurrentRemote.HasValue)
     {
         CloneUrl = new UriString(CurrentRemote.Value.Url);
     }
     else
     {
         CloneUrl = null;
     }
     Name = CloneUrl != null ? CloneUrl.RepositoryName : LocalPath.FileName;
     OnRepositoryInfoChanged?.Invoke();
 }
Exemplo n.º 2
0
        private void UpdateRepositoryInfo()
        {
            if (CurrentRemote.HasValue)
            {
                CloneUrl = new UriString(CurrentRemote.Value.Url);
                Name     = CloneUrl.RepositoryName;
                Logger.Trace("CloneUrl: {0}", CloneUrl.ToString());
            }
            else
            {
                CloneUrl = null;
                Name     = LocalPath.FileName;
                Logger.Trace("CloneUrl: [NULL]");
            }

            OnRepositoryInfoChanged?.Invoke();
        }