From a72514e615af50d50252c2efd48e253703c0b899 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 9 Jun 2012 01:41:45 -0400 Subject: [PATCH] setup e-mail after we init the repo --- .bin/cros-repo | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.bin/cros-repo b/.bin/cros-repo index 3da6b5c..711b8d3 100755 --- a/.bin/cros-repo +++ b/.bin/cros-repo @@ -15,9 +15,9 @@ usage() { exit ${1:-1} } -vexec() { +v() { printf '%s\n%s\n' "${PWD}" "$*" - exec "$@" + "$@" } email="vapier@chromium.org" @@ -50,6 +50,12 @@ while [[ $# -gt 0 ]] ; do shift done +v repo init \ + ${MANIFEST:+-u "${MANIFEST}"} \ + ${REPO_URL:+--repo-url="${REPO_URL}"} \ + ${REF:+--reference "${REF}"} \ + ${BRANCH:+-b "${BRANCH}"} + rdir=$(realpath "`pwd`") while [[ ! -d ${rdir}/.repo ]] ; do rdir=${rdir%/*} @@ -67,9 +73,4 @@ if [[ -d ${rdir} ]] ; then fi fi -vexec \ - repo init \ - ${MANIFEST:+-u "${MANIFEST}"} \ - ${REPO_URL:+--repo-url="${REPO_URL}"} \ - ${REF:+--reference "${REF}"} \ - ${BRANCH:+-b "${BRANCH}"} +exit 0 -- 2.39.5