diff --git a/scripts/purge-stale-projects.sh b/scripts/purge-stale-projects.sh index ee71581a..3e41caa0 100644 --- a/scripts/purge-stale-projects.sh +++ b/scripts/purge-stale-projects.sh @@ -116,6 +116,7 @@ for vcs in $vcss; do for p in $local_git_proj; do [ -L $p ] && continue [ -d $p ] || continue + git -C $p remote | grep -q . || { log "leaving \"$p\" alone, it has no remote"; continue; } echo $remote_git_proj | grep -q "\(^\| \)$p\($\| \)" && continue check_scm $p echo done checking scm