diff --git a/eol_branch.sh b/eol_branch.sh index ad9b69f..a80e89e 100755 --- a/eol_branch.sh +++ b/eol_branch.sh @@ -131,12 +131,18 @@ while (( "$#" )); do shift if ! [ -d $project/.git ]; then - echo "$project is not a git repo" - echo "skipping..." - continue + if ! [ -d $project ]; then + echo "$project not found on filesystem. Will attempt to clone" + $DEBUG git clone git://git.openstack.org/$project $project + else + echo "$project is not a git repo" + echo "skipping..." + continue + fi fi pushd $project + git review -s git remote update --prune if ! git rev-parse remotes/$REMOTE/$BRANCH >/dev/null 2>&1; then