| 2876 | } |
| 2877 | |
| 2878 | int64_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 | |
| 2903 | int64_t WasmRuntime::gitStartPull(String path, String branch, String token, bool force) { |
| 2904 | #ifdef DORA_NO_WA |
no test coverage detected