update git ask pass for linux
This commit is contained in:
parent
6a622f907e
commit
030486ef01
|
@ -587,11 +587,14 @@ QString GitManager::runGit(const QString& workingFolder, const QStringList &args
|
|||
// qDebug()<<"---------";
|
||||
// qDebug()<<args;
|
||||
QProcessEnvironment env;
|
||||
env.insert("PATH",pSettings->dirs().appDir());
|
||||
#ifdef Q_OS_WIN
|
||||
env.insert("PATH",pSettings->dirs().appDir());
|
||||
env.insert("GIT_ASKPASS",includeTrailingPathDelimiter(pSettings->dirs().appDir())+"redpanda-win-git-askpass.exe");
|
||||
#else
|
||||
env.insert("GIT_ASKPASS",includeTrailingPathDelimiter(pSettings->dirs().appDir())+"redpanda-git-askpass.exe");
|
||||
#elif defined(Q_OS_LINUX)
|
||||
env.insert(QProcessEnvironment::systemEnvironment());
|
||||
env.insert("LANG","en");
|
||||
env.insert("LANGUAGE","en");
|
||||
env.insert("GIT_ASKPASS",includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"redpanda-git-askpass");
|
||||
#endif
|
||||
QString output = runAndGetOutput(
|
||||
fileInfo.absoluteFilePath(),
|
||||
|
|
|
@ -11,7 +11,7 @@ int main(int argc, char *argv[])
|
|||
Dialog w;
|
||||
if (w.showPrompt(argv[1])==QDialog::Accepted) {
|
||||
char* input = w.getInput().toLocal8Bit().data();
|
||||
printf(input);
|
||||
printf("%s",input);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue