Merge "use git directly instead of through zuul-cloner"
This commit is contained in:
commit
bb001786d0
|
@ -85,13 +85,29 @@ defaultbranch=$branch"
|
|||
function clone_repo {
|
||||
typeset repo="$1"
|
||||
typeset branch="$2"
|
||||
if [ -z "$branch" ]; then
|
||||
branch="master"
|
||||
fi
|
||||
|
||||
title "Cloning $repo"
|
||||
(zuul-cloner --branch "$branch" git://git.openstack.org $repo \
|
||||
&& (cd $repo && git review -s && git remote -v update \
|
||||
&& git fetch -v --tags))
|
||||
_retval=$?
|
||||
return $_retval
|
||||
|
||||
set -e
|
||||
|
||||
# Create the parent directory in case it doesn't already exist.
|
||||
mkdir -p $(dirname $repo)
|
||||
|
||||
# Clone into openstack/foo instead of just foo.
|
||||
git clone git://git.openstack.org/$repo $repo
|
||||
|
||||
# Configure git-review so we can propose patches to the repo if
|
||||
# needed.
|
||||
(cd $repo && git review -s)
|
||||
|
||||
# Make sure we have all of the existing tags so we can refer to
|
||||
# them for building the release notes.
|
||||
(cd $repo && git fetch -v --tags)
|
||||
|
||||
# Make sure the active branch is set correctly.
|
||||
if [ ! -z "$branch" ]; then
|
||||
(cd $repo && git checkout $branch)
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $TOOLSDIR/functions
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $TOOLSDIR/functions
|
||||
|
|
Loading…
Reference in New Issue