From patchwork Mon Oct 7 23:21:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ryan S. Arnold" X-Patchwork-Id: 20885 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 644EF25DFC for ; Mon, 7 Oct 2013 23:21:42 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf15163383qcv.3 for ; Mon, 07 Oct 2013 16:21:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=RIuWCOtO9y7+X30KomcL38sL3+tXSqv0eSvPmzENstc=; b=GqBCeT4ff0swJ3+YfvxEscn99uG6vATUFdCuId7qEjzGu2IL934oLtg1dO/lJK52Iy yQ1Ii6RqmyINZpmFvx2C1Ucn04SkPG0COmJ5qLhE5aVIlLpu52F1joGqOTMhXq5hz9Bf KpCUX/NebdC43Yo4LhgdW+hTG0ZErRg5hsWBGMy4oh5ZFq28CeIOVHD9jyWk5ru1joKM JkCCYzJ5TM7UarACnUE/qKXab4CfcIrfQEo3OPeBHbgykcPdV72Pvf0oDR7JXApvzZyd 2xBQvQtXc4GF7SOjFJkaifgCxM4JVy0ZjPyV5/qY6Iu9DWd4wk2dD/9Qatzy2zqDDRQU TlaA== X-Received: by 10.236.189.37 with SMTP id b25mr31370521yhn.48.1381188101981; Mon, 07 Oct 2013 16:21:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.83 with SMTP id s19ls17623qeu.7.gmail; Mon, 07 Oct 2013 16:21:41 -0700 (PDT) X-Received: by 10.52.34.109 with SMTP id y13mr24586676vdi.8.1381188101876; Mon, 07 Oct 2013 16:21:41 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id fx15si8460257vec.72.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 16:21:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ia10so3279497vcb.34 for ; Mon, 07 Oct 2013 16:21:41 -0700 (PDT) X-Gm-Message-State: ALoCoQkhKBcJV0ezGSMND7z8F7tRRiqwWuuBjutNAHoMB913Jo3aPTdSWV+gFxXRhbDRD4LEIWkD X-Received: by 10.58.137.167 with SMTP id qj7mr28286721veb.1.1381188101603; Mon, 07 Oct 2013 16:21:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp160562vcz; Mon, 7 Oct 2013 16:21:40 -0700 (PDT) X-Received: by 10.50.27.9 with SMTP id p9mr18943732igg.53.1381188100680; Mon, 07 Oct 2013 16:21:40 -0700 (PDT) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) by mx.google.com with ESMTPS id o2si30355069icc.100.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 16:21:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.178 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.178; Received: by mail-ie0-f178.google.com with SMTP id to1so17089963ieb.23 for ; Mon, 07 Oct 2013 16:21:40 -0700 (PDT) X-Received: by 10.50.33.52 with SMTP id o20mr18885964igi.56.1381188099905; Mon, 07 Oct 2013 16:21:39 -0700 (PDT) Received: from localhost.net (c-71-195-40-9.hsd1.mn.comcast.net. [71.195.40.9]) by mx.google.com with ESMTPSA id ir7sm1210003igb.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2013 16:21:39 -0700 (PDT) From: "Ryan S. Arnold" To: rob.savoye@linaro.org Cc: patches@linaro.org, "Ryan S. Arnold" Subject: Re: [PATCH] Fix git clone to get repo without branch name as part of the url. Date: Mon, 7 Oct 2013 18:21:26 -0500 Message-Id: <1381188086-8102-1-git-send-email-ryan.arnold@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1381187601-7425-1-git-send-email-ryan.arnold@linaro.org> References: <1381187601-7425-1-git-send-email-ryan.arnold@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ryan.arnold@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: "Ryan S. Arnold" The previous version had white space errors. --- lib/checkout.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/checkout.sh b/lib/checkout.sh index 17e33ce..6e01bd2 100644 --- a/lib/checkout.sh +++ b/lib/checkout.sh @@ -82,7 +82,9 @@ checkout() dryrun "git clone $1 ${srcdir}" else if test ! -d ${local_snapshots}/${tool}.git; then - dryrun "git clone $1 ${srcdir}" + # Strip off the "/" from $1 to get the repo address + local repo="`echo $1 | sed -e "s:\(^.*/${tool}.git\).*:\1:"`" + dryrun "git clone ${repo} ${local_snapshots}/${tool}.git" fi dryrun "git-new-workdir ${local_snapshots}/${tool}.git ${srcdir} ${branch}" fi