* [PATCH] nmbug: only push master branch on nmbug push
@ 2013-02-09 22:49 Jani Nikula
2013-02-10 0:56 ` Tomi Ollila
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jani Nikula @ 2013-02-09 22:49 UTC (permalink / raw)
To: notmuch; +Cc: Tomi Ollila
nmbug pull only merges upstream master, but nmbug push tries to push
all local branches. The asymmetry results in conflicts whenever there
have been changes in the config branch in the origin:
$ nmbug push
To nmbug@nmbug.tethera.net:nmbug-tags
! [rejected] config -> config (non-fast-forward)
error: failed to push some refs to 'nmbug@nmbug.tethera.net:nmbug-tags'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the 'push.default' configuration
hint: variable to 'current' or 'upstream' to push only the current branch.
'git push origin' exited with nonzero value
To fix this, only push the master branch on nmbug push. Any config
changes need to be done manually via git anyway.
---
contrib/nmbug/nmbug | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/nmbug/nmbug b/contrib/nmbug/nmbug
index f003ef9..fe103b3 100755
--- a/contrib/nmbug/nmbug
+++ b/contrib/nmbug/nmbug
@@ -331,7 +331,7 @@ sub do_log {
sub do_push {
my $remote = shift || 'origin';
- git ('push', $remote);
+ git ('push', $remote, 'master');
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] nmbug: only push master branch on nmbug push
2013-02-09 22:49 [PATCH] nmbug: only push master branch on nmbug push Jani Nikula
@ 2013-02-10 0:56 ` Tomi Ollila
2013-02-10 1:26 ` David Bremner
2013-02-14 11:58 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: Tomi Ollila @ 2013-02-10 0:56 UTC (permalink / raw)
To: Jani Nikula, notmuch
On Sun, Feb 10 2013, Jani Nikula <jani@nikula.org> wrote:
> nmbug pull only merges upstream master, but nmbug push tries to push
> all local branches. The asymmetry results in conflicts whenever there
> have been changes in the config branch in the origin:
>
> $ nmbug push
> To nmbug@nmbug.tethera.net:nmbug-tags
> ! [rejected] config -> config (non-fast-forward)
> error: failed to push some refs to 'nmbug@nmbug.tethera.net:nmbug-tags'
> hint: Updates were rejected because a pushed branch tip is behind its remote
> hint: counterpart. If you did not intend to push that branch, you may want to
> hint: specify branches to push or set the 'push.default' configuration
> hint: variable to 'current' or 'upstream' to push only the current branch.
> 'git push origin' exited with nonzero value
>
> To fix this, only push the master branch on nmbug push. Any config
> changes need to be done manually via git anyway.
> ---
LGTM.
Tomi
> contrib/nmbug/nmbug | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/nmbug/nmbug b/contrib/nmbug/nmbug
> index f003ef9..fe103b3 100755
> --- a/contrib/nmbug/nmbug
> +++ b/contrib/nmbug/nmbug
> @@ -331,7 +331,7 @@ sub do_log {
> sub do_push {
> my $remote = shift || 'origin';
>
> - git ('push', $remote);
> + git ('push', $remote, 'master');
> }
>
>
> --
> 1.7.10.4
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nmbug: only push master branch on nmbug push
2013-02-09 22:49 [PATCH] nmbug: only push master branch on nmbug push Jani Nikula
2013-02-10 0:56 ` Tomi Ollila
@ 2013-02-10 1:26 ` David Bremner
2013-02-14 11:58 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2013-02-10 1:26 UTC (permalink / raw)
To: Jani Nikula, notmuch; +Cc: Tomi Ollila
Jani Nikula <jani@nikula.org> writes:
> nmbug pull only merges upstream master, but nmbug push tries to push
> all local branches. The asymmetry results in conflicts whenever there
> have been changes in the config branch in the origin:
LGTM
d
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nmbug: only push master branch on nmbug push
2013-02-09 22:49 [PATCH] nmbug: only push master branch on nmbug push Jani Nikula
2013-02-10 0:56 ` Tomi Ollila
2013-02-10 1:26 ` David Bremner
@ 2013-02-14 11:58 ` David Bremner
2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2013-02-14 11:58 UTC (permalink / raw)
To: Jani Nikula, notmuch
Jani Nikula <jani@nikula.org> writes:
> nmbug pull only merges upstream master, but nmbug push tries to push
> all local branches. The asymmetry results in conflicts whenever there
> have been changes in the config branch in the origin:
pushed.
d
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-14 11:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-09 22:49 [PATCH] nmbug: only push master branch on nmbug push Jani Nikula
2013-02-10 0:56 ` Tomi Ollila
2013-02-10 1:26 ` David Bremner
2013-02-14 11:58 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).