[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 30 / fb505f1ba63f84133221763d3891ac163cdad1
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id DB7BD431FC0\r
6         for <notmuch@notmuchmail.org>; Sat, 12 Apr 2014 09:30:55 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id yEqMccvJCYd7 for <notmuch@notmuchmail.org>;\r
16         Sat, 12 Apr 2014 09:30:51 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 0E409431FC3\r
21         for <notmuch@notmuchmail.org>; Sat, 12 Apr 2014 09:30:51 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <bremner@tethera.net>)\r
24         id 1WZ0pM-0004Ow-JE; Sat, 12 Apr 2014 13:30:48 -0300\r
25 Received: (nullmailer pid 5173 invoked by uid 1000); Sat, 12 Apr 2014\r
26         16:30:44 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [PATCH] nmbug: mark repository as bare on clone\r
30 Date: Sat, 12 Apr 2014 13:30:32 -0300\r
31 Message-Id: <1397320232-32458-1-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 1.9.1\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.13\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37         <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Sat, 12 Apr 2014 16:30:56 -0000\r
46 \r
47 As far as I can figure out, if a git repository is non-bare, then it\r
48 should either have core.worktree set, or the parent directory should\r
49 be the worktree. Since the parent directory is usually the user's home\r
50 directory, we don't want that. Although unlikely to be typed by\r
51 mistake\r
52 \r
53 % cd $HOME && ln -s .nmbug .git && git reset --hard\r
54 \r
55 would delete a bunch of files.\r
56 ---\r
57 \r
58 Hah, I managed to escalate a documentation quibble into a\r
59 sortof-security issue.\r
60 \r
61  devel/nmbug/nmbug | 1 +\r
62  1 file changed, 1 insertion(+)\r
63 \r
64 diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug\r
65 index d6f5213..b18ded7 100755\r
66 --- a/devel/nmbug/nmbug\r
67 +++ b/devel/nmbug/nmbug\r
68 @@ -134,6 +134,7 @@ sub do_clone {\r
69            $repository, $tempwork) == 0\r
70      or die "'git clone' exited with nonzero value\n";\r
71    git ('config', '--unset', 'core.worktree');\r
72 +  git ('config', 'core.bare', 'true');\r
73  }\r
74  \r
75  sub is_committed {\r
76 -- \r
77 1.9.1\r
78 \r