| 1915 | } |
| 1916 | |
| 1917 | QString GitPlugin::readConfigOption(const QUrl& repository, const QString& key) |
| 1918 | { |
| 1919 | QProcess exec; |
| 1920 | exec.setWorkingDirectory(urlDir(repository).absolutePath()); |
| 1921 | exec.start(QStringLiteral("git"), QStringList{QStringLiteral("config"), QStringLiteral("--get"), key}); |
| 1922 | exec.waitForFinished(); |
| 1923 | return QString::fromUtf8(exec.readAllStandardOutput().trimmed()); |
| 1924 | } |
| 1925 | |
| 1926 | #include "gitplugin.moc" |
| 1927 | #include "moc_gitplugin.cpp" |