| 2901 | } |
| 2902 | |
| 2903 | int64_t WasmRuntime::gitStartPull(String path, String branch, String token, bool force) { |
| 2904 | #ifdef DORA_NO_WA |
| 2905 | DORA_UNUSED_PARAM(path); |
| 2906 | DORA_UNUSED_PARAM(branch); |
| 2907 | DORA_UNUSED_PARAM(token); |
| 2908 | DORA_UNUSED_PARAM(force); |
| 2909 | return 0; |
| 2910 | #else // !DORA_NO_WA |
| 2911 | auto pathStr = path.toString(); |
| 2912 | auto branchStr = branch.toString(); |
| 2913 | auto tokenStr = token.toString(); |
| 2914 | return WaGitStartPull( |
| 2915 | c_cast<char*>(pathStr.c_str()), |
| 2916 | c_cast<char*>(branchStr.c_str()), |
| 2917 | c_cast<char*>(tokenStr.c_str()), |
| 2918 | force ? 1 : 0); |
| 2919 | #endif // !DORA_NO_WA |
| 2920 | } |
| 2921 | |
| 2922 | std::string Git::poll(int64_t jobId) { |
| 2923 | #ifdef DORA_NO_WA |
no test coverage detected