From b05e460b6f15764fb40248447c27136fe911e034 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 26 Jun 2012 10:58:10 -0400 Subject: [PATCH] update urls, and simplify branch selection --- .bin/cros-repo | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.bin/cros-repo b/.bin/cros-repo index b048f6c..c03020b 100755 --- a/.bin/cros-repo +++ b/.bin/cros-repo @@ -29,11 +29,11 @@ while [[ $# -gt 0 ]] ; do 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 @@ -51,6 +51,10 @@ while [[ $# -gt 0 ]] ; do 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}"} \ -- 2.39.5