MCPcopy Create free account
hub / github.com/c3d/tao3D / remoteFetchUrl

Method remoteFetchUrl

tao/git_backend.cpp:1072–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070
1071
1072QString 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
1091QString GitRepository::remotePushUrl(QString name)

Callers 3

foreachFunction · 0.80
fetchAndCheckoutMethod · 0.80

Calls 1

doneMethod · 0.45

Tested by

no test coverage detected