|
|
@ -5,11 +5,6 @@ def clone_repository(branch, commit_hash): |
|
|
|
repository_url = "https://gitee.com/phytium_embedded/phytium-standalone-sdk.git" |
|
|
|
target_folder = "../libraries/phytium_standalone_sdk" |
|
|
|
|
|
|
|
# Check if the target folder already exists |
|
|
|
if os.path.exists(target_folder): |
|
|
|
print("phytium_standalone_sdk already exists.If you need to download again, please remove or rename it before running the script.") |
|
|
|
return |
|
|
|
|
|
|
|
# Clone the repository |
|
|
|
subprocess.call(["git", "clone", "-b", branch, repository_url, target_folder]) |
|
|
|
|
|
|
@ -24,6 +19,6 @@ def clone_repository(branch, commit_hash): |
|
|
|
if __name__ == "__main__": |
|
|
|
|
|
|
|
branch_to_clone = "master" |
|
|
|
commit_to_clone = "18b911742e6d55f01998f1a2f9ddff9b39d76c19" |
|
|
|
commit_to_clone = "4be9461704ed958d972ee08d331c600dcedb0833" |
|
|
|
|
|
|
|
clone_repository(branch_to_clone, commit_to_clone) |