From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpout2.vodafonemail.de (smtpout2.vodafonemail.de [145.253.239.133]) by sourceware.org (Postfix) with ESMTPS id BF34B3858018 for ; Mon, 4 Jan 2021 20:20:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF34B3858018 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Stromeko@nexgo.de Received: from smtp.vodafone.de (unknown [10.2.0.36]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id 9171B121747 for ; Mon, 4 Jan 2021 21:20:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1609791657; bh=igF4n7dswAZMC+v55mzdPf36dxpbw1PY3MsFVHOnuh4=; h=From:To:Subject:Date; b=dzVJbbNhaSK6tGDI5C4Q7zAF3WdMaLy4P5f99oSogf4JjQWtVLfaKck4tbcJKNUgv wpyt994+WaNDB0aYnd2sNqeF5Hm/yfoozttU3SrmgTwQmy5WBUYp+MONCgkSnGCMPu LhFOebRl1Vz2xDDIZ1142uwX8mVVUU6FhaGnon1w= Received: from Gertrud (p54a0ca05.dip0.t-ipconnect.de [84.160.202.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 271D6140250 for ; Mon, 4 Jan 2021 20:20:57 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: [PATCH] cygport use shallow clone for branches and tags Date: Mon, 04 Jan 2021 21:20:51 +0100 Message-ID: <87czyk8ndo.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1231 X-purgate-ID: 155817::1609791657-000048A3-B6F03BF3/0/0 X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2021 20:21:00 -0000 --8<---------------cut here---------------start------------->8--- Subject: [PATCH] cygclass/git.cygclass: use shallow clones for branches and tags also --- cygclass/git.cygclass | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cygclass/git.cygclass b/cygclass/git.cygclass index 1e3de23..f63cc5f 100644 --- a/cygclass/git.cygclass +++ b/cygclass/git.cygclass @@ -70,10 +70,17 @@ git_fetch() { check_prog_req git - if ! defined GIT_TAG && ! defined GIT_BRANCH && ! defined GIT_REV + if ! defined GIT_REV then - # fetching master/HEAD, so we don't need any history + # fetching master/HEAD, branch or tag, so we don't need any history _depth="--depth 1" + if defined GIT_TAG + then + _depth+=" --branch ${GIT_TAG}" + elif defined GIT_BRANCH + then + _depth+=" --branch ${GIT_BRANCH}" + fi fi # T likely doesn't exist at this point, so create it first -- 2.29.2 --8<---------------cut here---------------end--------------->8--- Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada