MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / gitStartClone

Method gitStartClone

Source/Wasm/WasmRuntime.cpp:2878–2901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2876}
2877
2878int64_t WasmRuntime::gitStartClone(String url, String path, String branch, String token, int depth) {
2879#ifdef DORA_NO_WA
2880 DORA_UNUSED_PARAM(url);
2881 DORA_UNUSED_PARAM(path);
2882 DORA_UNUSED_PARAM(branch);
2883 DORA_UNUSED_PARAM(token);
2884 DORA_UNUSED_PARAM(depth);
2885 return 0;
2886#else // !DORA_NO_WA
2887 if (depth < 0) {
2888 depth = 0;
2889 }
2890 auto urlStr = url.toString();
2891 auto pathStr = path.toString();
2892 auto branchStr = branch.toString();
2893 auto tokenStr = token.toString();
2894 return WaGitStartClone(
2895 c_cast<char*>(urlStr.c_str()),
2896 c_cast<char*>(pathStr.c_str()),
2897 c_cast<char*>(branchStr.c_str()),
2898 c_cast<char*>(tokenStr.c_str()),
2899 depth);
2900#endif // !DORA_NO_WA
2901}
2902
2903int64_t WasmRuntime::gitStartPull(String path, String branch, String token, bool force) {
2904#ifdef DORA_NO_WA

Callers 1

WaGitStartCloneFunction · 0.80

Calls 3

WaGitStartCloneFunction · 0.70
toStringMethod · 0.65
c_strMethod · 0.45

Tested by

no test coverage detected