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(); }
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); } }