From: Mike Frysinger Date: Tue, 26 Jun 2012 14:58:10 +0000 (-0400) Subject: update urls, and simplify branch selection X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b05e460b6f15764fb40248447c27136fe911e034;p=home.git update urls, and simplify branch selection --- 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}"} \