mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-114428 Clear-text Mercurial passwords in idea.log
This commit is contained in:
@@ -239,8 +239,9 @@ public final class HgCommandExecutor {
|
||||
final int lastSlashIndex = settings.getHgExecutable().lastIndexOf(File.separator);
|
||||
exeName = settings.getHgExecutable().substring(lastSlashIndex + 1);
|
||||
|
||||
final String cmdString = String.format("%s %s %s", exeName, operation, arguments == null ? "" : StringUtil.join(arguments, " "));
|
||||
|
||||
String str = String.format("%s %s %s", exeName, operation, arguments == null ? "" : StringUtil.join(arguments, " "));
|
||||
//remove password from path before log
|
||||
final String cmdString = myDestination != null ? HgUtil.removePasswordIfNeeded(str) : str;
|
||||
final boolean isUnitTestMode = ApplicationManager.getApplication().isUnitTestMode();
|
||||
// log command
|
||||
if (isUnitTestMode) {
|
||||
|
||||
Reference in New Issue
Block a user