Spaces:
Running
Running
Download push_code.py from shoaibrza9999/ar-trace-app: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/shoaibrza9999/ar-trace-app/resolve/main/push_code.py
- Command line
-
hf download hf://spaces/shoaibrza9999/ar-trace-app/push_code.py
-
curl -L -o push_code.py https://huggingface.co/spaces/shoaibrza9999/ar-trace-app/resolve/main/push_code.py
447 Bytes
| import subprocess | |
| def run_cmd(cmd): | |
| print(f"Running: {' '.join(cmd)}") | |
| result = subprocess.run(cmd, capture_output=True, text=True) | |
| print("STDOUT:", result.stdout) | |
| print("STDERR:", result.stderr) | |
| return result.returncode | |
| # Checkout main | |
| run_cmd(["git", "checkout", "main"]) | |
| # Merge the branch | |
| run_cmd(["git", "merge", "jules-14141810205007445021-83c177a6"]) | |
| # Push to origin main | |
| run_cmd(["git", "push", "origin", "main"]) | |