Re: Hi all
[notmuch-archives.git] / 90 / 3e55f318670c7ed8e4e27bd27e465c2e66af13
1 Return-Path: <jani@nikula.org>\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 5F21F431FAF\r
6         for <notmuch@notmuchmail.org>; Sat,  9 Feb 2013 14:49:05 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 6x2nD0sNGNNN for <notmuch@notmuchmail.org>;\r
16         Sat,  9 Feb 2013 14:49:03 -0800 (PST)\r
17 Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com\r
18         [209.85.217.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id E405C431FAE\r
21         for <notmuch@notmuchmail.org>; Sat,  9 Feb 2013 14:49:02 -0800 (PST)\r
22 Received: by mail-lb0-f174.google.com with SMTP id l12so3848105lbo.19\r
23         for <notmuch@notmuchmail.org>; Sat, 09 Feb 2013 14:49:00 -0800 (PST)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=x-received:from:to:cc:subject:date:message-id:x-mailer\r
27         :x-gm-message-state;\r
28         bh=75JwWYVvmnPjPVGJAwDbe+f/vbcDoDcuz7rjnmtUV80=;\r
29         b=CYcKl6vpGxheyHH4qlmXTwLjhyZIrkpkkfsEFWO/JEmu36iDN86/ZwD0RfgquZxvzc\r
30         JPDaLqdcyRF3r2IP1nX0xpk8Jp2bxq00L899I/a3l+z2NHN4c/1j9/hcesbLs57JqliJ\r
31         F8Kxw646bAHvw59oCXL5KRK290pDRwicv/QfgG+3SUyl88H0K4NDfPjaj8mJtPK+lfhJ\r
32         HP52jD1xMloNOXwx695y3uutAtauiFc7W8X+etYbmpE9BwNXLAjO+X18qhIkHRHeDkN2\r
33         fhMubgEX4G8H9/gbcmaWct1xcOIYW3FxJOx1A6dIPM5ypNNnVxd+2s30DMN6m+pSjyao\r
34         8Pkw==\r
35 X-Received: by 10.152.133.130 with SMTP id pc2mr8611502lab.51.1360450139954;\r
36         Sat, 09 Feb 2013 14:48:59 -0800 (PST)\r
37 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.\r
38         [80.223.81.27])\r
39         by mx.google.com with ESMTPS id fz16sm20582lab.5.2013.02.09.14.48.57\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Sat, 09 Feb 2013 14:48:58 -0800 (PST)\r
42 From: Jani Nikula <jani@nikula.org>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH] nmbug: only push master branch on nmbug push\r
45 Date: Sun, 10 Feb 2013 00:49:00 +0200\r
46 Message-Id: <1360450140-8439-1-git-send-email-jani@nikula.org>\r
47 X-Mailer: git-send-email 1.7.10.4\r
48 X-Gm-Message-State:\r
49  ALoCoQnphBfOq7/Rz7V5JjVX1TLRk2XQe1ftH7bSOYa6UfwlPN3ngh78NptJUIIXA9d1j7js4m1f\r
50 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Sat, 09 Feb 2013 22:49:05 -0000\r
64 \r
65 nmbug pull only merges upstream master, but nmbug push tries to push\r
66 all local branches. The asymmetry results in conflicts whenever there\r
67 have been changes in the config branch in the origin:\r
68 \r
69 $ nmbug push\r
70 To nmbug@nmbug.tethera.net:nmbug-tags\r
71  ! [rejected]        config -> config (non-fast-forward)\r
72 error: failed to push some refs to 'nmbug@nmbug.tethera.net:nmbug-tags'\r
73 hint: Updates were rejected because a pushed branch tip is behind its remote\r
74 hint: counterpart. If you did not intend to push that branch, you may want to\r
75 hint: specify branches to push or set the 'push.default' configuration\r
76 hint: variable to 'current' or 'upstream' to push only the current branch.\r
77 'git push origin' exited with nonzero value\r
78 \r
79 To fix this, only push the master branch on nmbug push. Any config\r
80 changes need to be done manually via git anyway.\r
81 ---\r
82  contrib/nmbug/nmbug |    2 +-\r
83  1 file changed, 1 insertion(+), 1 deletion(-)\r
84 \r
85 diff --git a/contrib/nmbug/nmbug b/contrib/nmbug/nmbug\r
86 index f003ef9..fe103b3 100755\r
87 --- a/contrib/nmbug/nmbug\r
88 +++ b/contrib/nmbug/nmbug\r
89 @@ -331,7 +331,7 @@ sub do_log {\r
90  sub do_push {\r
91    my $remote = shift || 'origin';\r
92  \r
93 -  git ('push', $remote);\r
94 +  git ('push', $remote, 'master');\r
95  }\r
96  \r
97  \r
98 -- \r
99 1.7.10.4\r
100 \r