case $1 in
int)
MANIFEST='ssh://gerrit-int.chromium.org:29419/chromeos/manifest-internal.git'
- REPO_URL='http://git.chromium.org/external/repo.git'
+ REPO_URL='https://git.chromium.org/git/external/repo.git'
;;
ext)
- MANIFEST='http://git.chromium.org/chromiumos/manifest.git'
- REPO_URL='http://git.chromium.org/external/repo.git'
+ MANIFEST='https://git.chromium.org/git/chromiumos/manifest.git'
+ REPO_URL='https://git.chromium.org/git/external/repo.git'
;;
-b)
BRANCH=$2
shift
done
+if [[ ${#BRANCH} -eq 3 ]] && [[ -d ${REF} ]] ; then
+ BRANCH=$(git --git-dir="${REF}/.repo/manifests.git" branch -a | grep -o "release-${BRANCH}.*")
+fi
+
v repo init \
${MANIFEST:+-u "${MANIFEST}"} \
${REPO_URL:+--repo-url="${REPO_URL}"} \