| 1070 | |
| 1071 | |
| 1072 | QString GitRepository::remoteFetchUrl(QString name) |
| 1073 | // ---------------------------------------------------------------------------- |
| 1074 | // Return the pull/fetch URL for the specified remote |
| 1075 | // ---------------------------------------------------------------------------- |
| 1076 | { |
| 1077 | Q_ASSERT(!noLocal); |
| 1078 | if(noLocal) |
| 1079 | return ""; |
| 1080 | |
| 1081 | QStringList args; |
| 1082 | args << "config" << "--get" << QString("remote.%1.url").arg(name); |
| 1083 | text output; |
| 1084 | waitForAsyncProcessCompletion(); |
| 1085 | GitProcess cmd(command(), args, path); |
| 1086 | cmd.done(&errors, &output); |
| 1087 | return (+output).trimmed(); |
| 1088 | } |
| 1089 | |
| 1090 | |
| 1091 | QString GitRepository::remotePushUrl(QString name) |
no test coverage detected