From 000259db0c00130cfa31350e2df9cdf05b2b5bef Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 16 Apr 2014 10:23:19 +1700 Subject: [PATCH] Re: [PATCH] nmbug: mark repository as bare on clone --- 53/030113a627a7c259363ad82ad06bc96b6ee79f | 144 ++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 53/030113a627a7c259363ad82ad06bc96b6ee79f diff --git a/53/030113a627a7c259363ad82ad06bc96b6ee79f b/53/030113a627a7c259363ad82ad06bc96b6ee79f new file mode 100644 index 000000000..bc3da8d09 --- /dev/null +++ b/53/030113a627a7c259363ad82ad06bc96b6ee79f @@ -0,0 +1,144 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 2124E431FBF + for ; Tue, 15 Apr 2014 10:23:31 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.1 +X-Spam-Level: +X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id J0nKr4Dvv8NL for ; + Tue, 15 Apr 2014 10:23:23 -0700 (PDT) +Received: from qmta04.westchester.pa.mail.comcast.net + (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) + by olra.theworths.org (Postfix) with ESMTP id 47C9C431FBD + for ; Tue, 15 Apr 2014 10:23:23 -0700 (PDT) +Received: from omta18.westchester.pa.mail.comcast.net ([76.96.62.90]) + by qmta04.westchester.pa.mail.comcast.net with comcast + id qDWG1n0031wpRvQ54HPMuX; Tue, 15 Apr 2014 17:23:21 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta18.westchester.pa.mail.comcast.net with comcast + id qHPK1n00X152l3L3eHPLmU; Tue, 15 Apr 2014 17:23:21 +0000 +Received: by odin.tremily.us (Postfix, from userid 1000) + id 9C72411481D9; Tue, 15 Apr 2014 10:23:19 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; + t=1397582599; bh=LIMbYD6fKI8RSBhg1UMrPV39tfHLmw/0nTOvSHBva8M=; + h=Date:From:To:Cc:Subject:References:In-Reply-To; + b=aSiyAcpjyVYFG1puwvoBEl+AGCyoPDFIEFL7VUNOQZFCLJJvYzkna+G0cRb8nXENL + peI853NNHuHpAYy1mKu2XqDydYexOcUAQYUhf3s0Pxkc8/tD8JqBjYxssRs7E9NfWK + psWFjVXTUT8EX1A80yTxaq6g71Zrb2502POt/BgA= +Date: Tue, 15 Apr 2014 10:23:19 -0700 +From: "W. Trevor King" +To: David Bremner +Subject: Re: [PATCH] nmbug: mark repository as bare on clone +Message-ID: <20140415172319.GJ21805@odin.tremily.us> +References: <1397320232-32458-1-git-send-email-david@tethera.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; micalg=pgp-sha1; + protocol="application/pgp-signature"; boundary="fLj60tP2PZ34xyqD" +Content-Disposition: inline +In-Reply-To: <1397320232-32458-1-git-send-email-david@tethera.net> +OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; + url=http://tremily.us/pubkey.txt +User-Agent: Mutt/1.5.22 (2013-10-16) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20140121; t=1397582601; + bh=eWfjYvOLJJ5PtfhH1Y3oy+DdjGfBnoV83WKhBV4piak=; + h=Received:Received:Received:Date:From:To:Subject:Message-ID: + MIME-Version:Content-Type; + b=n8v7vIqzXqYxaOMWnzBqGm3B0m2klEAUB5OgL7VCXfEvAdoHZ1anFwj+3D6/R+25i + jvryhv0UgaU+FMepmKZSagBtY4/ThV8AzQ2lV25JZMJ2d5DZbQ6Q80HqFPXtrNtB/Q + hcoLB+uAKEL9wciNIpCjsv49hAUvlqd9u9tqS70eTUEUwnvZZtzzofntkzleU9kIL0 + gHzhlD3KRY7zvNTFEgElMW8h7AVnf8OiL+gap2uhHCaL0CKqhYljWi2QwfjT+MoGim + Xx/szdxyeAWHlMVTTwgY2vh5CAqhK2Gr8lsb2YPBuN5qDWnSinstc6yz0vdrLAgT/P + F6gOyj/odZa4Q== +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 15 Apr 2014 17:23:31 -0000 + + +--fLj60tP2PZ34xyqD +Content-Type: text/plain; charset=utf-8 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +On Sat, Apr 12, 2014 at 01:30:32PM -0300, David Bremner wrote: +> As far as I can figure out, if a git repository is non-bare, then it +> should either have core.worktree set, or the parent directory should +> be the worktree. + +If this works in your testing, then +1 from me ;). However, the +default is the current working directory, not the repo's parent +directory [1]: + + core.worktree + =E2=80=A6 + If --git-dir or GIT_DIR is specified but none of --work-tree, + GIT_WORK_TREE and core.worktree is specified, the current working + directory is regarded as the top level of your working tree. + +> % cd $HOME && ln -s .nmbug .git && git reset --hard +>=20 +> would delete a bunch of files. + +Actually, that would just clobber existing ~/tags/{message-id}/{tag} +files, which the user likely doesn't have. To remove files, you'd +need something like: + + $ cd $HOME && ln -s .nmbug .git && git clean -f + +Still, these are just quibbles with the commit message. I'm +1 on the +code change. My initial bare-resistance [2] was because I didn't +realize that an explicit GIT_WORK_TREE would override the core.bare +setting. + +Cheers, +Trevor + +[1]: https://www.kernel.org/pub/software/scm/git/docs/git-config.html +[2]: http://article.gmane.org/gmane.mail.notmuch.general/17817 + +--=20 +This email may be signed or encrypted with GnuPG (http://www.gnupg.org). +For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy + +--fLj60tP2PZ34xyqD +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: OpenPGP digital signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQIcBAEBAgAGBQJTTWsCAAoJEKKfehoaNkbtYYoP/27FhdXV70IPv8ZEnWzubYYv +SxHc5RTakUdHPrQnPNFJLOHN00JoAcM0AxxEZjml+1ReRgKuTPzRTaL9AyecmQN8 +o91LYBBU9tqEpB18LjZ1PZ71hBgVEqycd5CrLuFQyTUTxVhWR6Hom/lVUkQPlvOy +m2JOGxjyDJdUTed5NL/FmHx71JvxnhsktBDb9zddN7nGl08QR4j1rmmev4BTUHeu +rImLXFCkwCzbU10HKGhVVGoVNYhbQl46RBmb13knO7bF3mdnz0ujNzyy4IoPqBgf +kA/im8Ycp/w2mlxViqXwRB+AXydM1M775jgpA8q/kzrEby+tU8J29D1pLHAcLQAR +2XTKlJ43SH1lLn7szvjpPnfWuneReYYqO+mGoHt3s2yEyVWdzkkhmyNKN+9wsVrF +ANxsYlskWITYD/jEJ9G7iChIN5YoDGE7+NYndvbJQIIhehBgVmhoaMAuXmHxRVVu +jFggLE3rtbMif7AIY1FC3K+QIUNHq80qg22XkzKkI1WbJHwsj1FgQUiuj6LUHYjO +/K1JkSwAJmnbXwj9RS07axAetM8DXI6RzYitVWJZJPlK+9zae5J1On9YgVPVtqEY +uS9VAiFuVzh9/IHi5Hd+FazQvxN3MksmwcUh7qSMsl7gPPcdkaJv21H+Nu3ioqAm +yD1T3/tD0Scl/m8O6n9H +=puKu +-----END PGP SIGNATURE----- + +--fLj60tP2PZ34xyqD-- -- 2.26.2