Re: [PATCH] nmbug: mark repository as bare on clone
authorW. Trevor King <wking@tremily.us>
Tue, 15 Apr 2014 17:23:19 +0000 (10:23 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:01:37 +0000 (10:01 -0800)
53/030113a627a7c259363ad82ad06bc96b6ee79f [new file with mode: 0644]

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