From patchwork Mon Oct 7 23:13:21 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: 20884 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C53BF25DFC for ; Mon, 7 Oct 2013 23:13:55 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf15157047qcx.4 for ; Mon, 07 Oct 2013 16:13:55 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=nrvqCFm8SecSWTqVIxRdRnQPfwgkrg25z/Wyk6uVCME=; b=eEqKDN7oMb1eriUPsPK9DCynMLQ5kUNSSum9lsLYdX4VNREaJNNwo+fLZF4qCuQHZ1 FOkegSCzxsJbF+QqB6uPmqrTR8a8FCTO1EfjROn3a/gkjN6YFCx3H1KIpgiNge1jXRNH Ad6MGrCYou34FX0W9kgz4hNKJyWW++XhEBbfdVyVNMBKCbQ/0fsaN8Q26NFTfOiu31tU HF3KeXgYJVFVr+hkeOZBvGvZ+YMyQUrWSGKrWmmYuOWXVJXkT2jvCkE1fI8GuKmDdxAi 385wVBI3lZF5wSfBiH1CuePoEo8s0+QWrBMctd6JM+vuhVWlFRryt1nMHz6oZu9miwja JBeg== X-Received: by 10.236.6.134 with SMTP id 6mr29623067yhn.7.1381187635086; Mon, 07 Oct 2013 16:13:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.16.200 with SMTP id i8ls5230qed.65.gmail; Mon, 07 Oct 2013 16:13:54 -0700 (PDT) X-Received: by 10.58.118.130 with SMTP id km2mr28338598veb.0.1381187634942; Mon, 07 Oct 2013 16:13:54 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id b5si8442378vel.138.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 16:13:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id ld13so3354620vcb.11 for ; Mon, 07 Oct 2013 16:13:54 -0700 (PDT) X-Gm-Message-State: ALoCoQkAISIRccMM+ZzOCb8TGzK6oOayoXLZWbb1UjOOBmQjPFDH2eKHsu5V8uZosL4dAdj5dzXw X-Received: by 10.58.137.167 with SMTP id qj7mr28262662veb.1.1381187634817; Mon, 07 Oct 2013 16:13:54 -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 u4csp160214vcz; Mon, 7 Oct 2013 16:13:38 -0700 (PDT) X-Received: by 10.42.54.132 with SMTP id r4mr19298870icg.19.1381187618040; Mon, 07 Oct 2013 16:13:38 -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 d4si419684igr.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 16:13:38 -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 to1so17073776ieb.23 for ; Mon, 07 Oct 2013 16:13:37 -0700 (PDT) X-Received: by 10.42.54.132 with SMTP id r4mr19298834icg.19.1381187616854; Mon, 07 Oct 2013 16:13:36 -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 p7sm1198952iga.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 07 Oct 2013 16:13:36 -0700 (PDT) From: "Ryan S. Arnold" To: rob.savoye@linaro.org Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH] Fix git clone to get repo without branch name as part of the url. Date: Mon, 7 Oct 2013 18:13:21 -0500 Message-Id: <1381187601-7425-1-git-send-email-ryan.arnold@linaro.org> X-Mailer: git-send-email 1.8.3.1 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.180 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" --- 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