Handle unknown projects in eol_branch
The script assumes you have all of openstack checked out. However for new repos (or presumably all) we can easily clone it if we don't have it. Clearly this is very inefficient, but it is simply how this script works for now. Change-Id: I0d0ab73da6d4e93172be94178652c5aa28d7dcdb
This commit is contained in:
parent
3f0acc3919
commit
1d8e811892
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue