(path)
| 110 | raise ValueError("Command returned non-zero status: " + str(res)); |
| 111 | |
| 112 | def escapifyPath(path): |
| 113 | if path.find(" ") == -1: |
| 114 | return path |
| 115 | if platform.system() == "Windows": |
| 116 | return "\"" + path + "\"" |
| 117 | return path.replace("\\ ", " ") |
| 118 | |
| 119 | def cloneRepository(type, url, target_name, revision = None, try_only_local_operations = False): |
| 120 | target_dir = escapifyPath(os.path.join(SRC_DIR, target_name)) |