switch to ssh
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
d298d873bcdd2dc5bd211cee2c6c32276a795a2f- Parents
-
7539069 - Tree
d620ae2
d298d87
d298d873bcdd2dc5bd211cee2c6c32276a795a2f7539069
d620ae2| Status | File | + | - |
|---|---|---|---|
| M |
Script/sync-repos
|
4 | 3 |
Script/sync-reposmodified@@ -85,9 +85,10 @@ sync_repo() { | |||
| 85 | ((total_skipped++)) || true | 85 | ((total_skipped++)) || true |
| 86 | fi | 86 | fi |
| 87 | else | 87 | else |
| 88 | - # Clone new repo with timeout, showing progress | 88 | + # Clone new repo via SSH with timeout, showing progress |
| 89 | - log_info "Cloning $repo..." | 89 | + local ssh_url="git@github.com:${github_org}/${repo}.git" |
| 90 | - if timeout "$CLONE_TIMEOUT" gh repo clone "${github_org}/${repo}" "$repo_path" -- --progress 2>&1; then | 90 | + log_info "Cloning $repo (SSH)..." |
| 91 | + if timeout "$CLONE_TIMEOUT" git clone --progress "$ssh_url" "$repo_path" 2>&1; then | ||
| 91 | if [[ -d "$repo_path/.git" ]]; then | 92 | if [[ -d "$repo_path/.git" ]]; then |
| 92 | log_success "$repo (cloned)" | 93 | log_success "$repo (cloned)" |
| 93 | ((total_cloned++)) || true | 94 | ((total_cloned++)) || true |