| 2855 | } |
| 2856 | |
| 2857 | int64_t Git::run(String repoPath, String command, const std::function<void(String)>& callback, String optionsJSON) { |
| 2858 | #ifdef DORA_NO_WA |
| 2859 | DORA_UNUSED_PARAM(repoPath); |
| 2860 | DORA_UNUSED_PARAM(command); |
| 2861 | DORA_UNUSED_PARAM(optionsJSON); |
| 2862 | return runJob(0, repoPath, "run"_slice, callback); |
| 2863 | #else // !DORA_NO_WA |
| 2864 | auto repoPathStr = repoPath.toString(); |
| 2865 | auto commandStr = command.toString(); |
| 2866 | auto optionsJSONStr = optionsJSON.toString(); |
| 2867 | return runJob( |
| 2868 | WaGitRun( |
| 2869 | c_cast<char*>(repoPathStr.c_str()), |
| 2870 | c_cast<char*>(commandStr.c_str()), |
| 2871 | c_cast<char*>(optionsJSONStr.c_str())), |
| 2872 | repoPath, |
| 2873 | "run"_slice, |
| 2874 | callback); |
| 2875 | #endif // !DORA_NO_WA |
| 2876 | } |
| 2877 | |
| 2878 | int64_t WasmRuntime::gitStartClone(String url, String path, String branch, String token, int depth) { |
| 2879 | #ifdef DORA_NO_WA |