mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[hg] Show actual executable in the command line (not hg.exe for hg.bat, for instance).
This commit is contained in:
@@ -181,7 +181,11 @@ public final class HgCommandExecutor {
|
||||
|
||||
// logging to the Version Control console (without extensions and configs)
|
||||
private void log(String operation, List<String> arguments, HgCommandResult result) {
|
||||
final String executable = mySettings.isRunViaBash() ? "bash -c " + HgVcs.HG_EXECUTABLE_FILE_NAME : HgVcs.HG_EXECUTABLE_FILE_NAME;
|
||||
String exeName;
|
||||
final int lastSlashIndex = mySettings.getHgExecutable().lastIndexOf("/");
|
||||
exeName = mySettings.getHgExecutable().substring(lastSlashIndex + 1);
|
||||
|
||||
final String executable = mySettings.isRunViaBash() ? "bash -c " + exeName : exeName;
|
||||
final String cmdString = String.format("%s %s %s", executable, operation, StringUtils.join(arguments, " "));
|
||||
|
||||
// log command
|
||||
|
||||
Reference in New Issue
Block a user