コード例 #1
0
 internal void RemoveCredentials(GitCredential credential, bool removeFromManager)
 {
     if (removeFromManager)
     {
         if (SeletedAdapter != null)
         {
             try
             {
             }
             catch (Exception e)
             {
                 logger.LogFormat(LogType.Error, "There was an error while trying to remove credentials form {0}", GetAdapterName(SeletedAdapter));
                 logger.LogException(e);
             }
         }
     }
     gitCredentials.RemoveEntry(credential);
     gitCredentials.MarkDirty();
 }
コード例 #2
0
        internal static void DeleteCredentials(string url)
        {
            var entry = gitCredentials.GetEntry(url);

            if (SeletedAdapter != null)
            {
                try
                {
                    SeletedAdapter.DeleteCredentials(SeletedAdapter.FormatUrl(url));
                }
                catch (Exception e)
                {
                    Debug.LogError("There was an error while trying to remove credentials form " + GetAdapterName(SeletedAdapter));
                    Debug.LogException(e);
                }
            }

            if (entry != null)
            {
                gitCredentials.RemoveEntry(entry);
            }
        }