<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.4.3">
</HEAD>
<BODY>
Thanks,<BR>
<BR>
That worked.&nbsp; I thought it was something stupid I was doing!<BR>
<BR>
Peter<BR>
<BR>
On Tue, 2012-08-14 at 10:10 +0200, Daniel-Constantin Mierla wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,

error messages shows that git tries to push to a root branch 'origin' or 
'outbound' on the remote server, not under 'pd/outbound

Did you try the command:

git push origin outbound:pd/outbound


It is how I would push local branch 'outbound' to remote 'pd/outbound'. 
I think 'origin' does not have to be on the branch path, it is just a 
parameter to git push to identify the remote repo.

Cheers,
Daniel


On 8/14/12 9:43 AM, Peter Dunkley wrote:
&gt; I won't have access to the computer I was using last night for the rest of
&gt; today (although I will be on another machine I can try from), but I just
&gt; retried my push on a clean checkout and it still fails:
&gt;
&gt; $ cd modules_k/
&gt; $ cp -R ~/backup/outbound .
&gt; $ cd ..
&gt; $ git add modules_k/outbound/
&gt; $ git commit .
&gt; [outbound e44e6e9] modules_k/outbound: added stub module for Outbound
&gt;   7 files changed, 393 insertions(+)
&gt;   create mode 100644 modules_k/outbound/Makefile
&gt;   create mode 100644 modules_k/outbound/README
&gt;   create mode 100644 modules_k/outbound/api.h
&gt;   create mode 100644 modules_k/outbound/doc/Makefile
&gt;   create mode 100644 modules_k/outbound/doc/outbound.xml
&gt;   create mode 100644 modules_k/outbound/doc/outbound_admin.xml
&gt;   create mode 100644 modules_k/outbound/ob_mod.c
&gt; $ git push
&gt; Everything up-to-date
&gt; $ git push origin
&gt; Everything up-to-date
&gt; $ git push origin outbound
&gt; Counting objects: 14, done.
&gt; Delta compression using up to 2 threads.
&gt; Compressing objects: 100% (12/12), done.
&gt; Writing objects: 100% (12/12), 4.27 KiB, done.
&gt; Total 12 (delta 2), reused 0 (delta 0)
&gt; remote: error: hook declined to update refs/heads/outbound
&gt; To ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router
&gt;   ! [remote rejected] outbound -&gt; outbound (hook declined)
&gt; error: failed to push some refs to 'ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router'
&gt; $ git push origin origin/pd/outbound
&gt; Total 0 (delta 0), reused 0 (delta 0)
&gt; remote: error: hook declined to update refs/remotes/origin/pd/outbound
&gt; To ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router
&gt;   ! [remote rejected] origin/pd/outbound -&gt; origin/pd/outbound (hook declined)
&gt; error: failed to push some refs to 'ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router'
&gt;
&gt; Thanks,
&gt;
&gt; Peter
&gt;
&gt;&gt; $ git branch
&gt;&gt;    master
&gt;&gt; * outbound
&gt;&gt;
&gt;&gt; Also,
&gt;&gt; $ git branch -r
&gt;&gt;    origin/3.1
&gt;&gt;    origin/3.2
&gt;&gt;    origin/3.3
&gt;&gt;    origin/HEAD -&gt; origin/master
&gt;&gt; ...
&gt;&gt;    origin/pd/outbound
&gt;&gt;    origin/pd/websocket
&gt;&gt; ...
&gt;&gt;
&gt;&gt; When I do a new clone of the repository and checkout the branch I get
&gt;&gt; this,
&gt;&gt; $ git clone ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router kamailio2
&gt;&gt; Cloning into 'kamailio2'...
&gt;&gt; remote: Counting objects: 133561, done.
&gt;&gt; remote: Compressing objects: 100% (32070/32070), done.
&gt;&gt; remote: Total 133561 (delta 94741), reused 129195 (delta 90624)
&gt;&gt; Receiving objects: 100% (133561/133561), 34.09 MiB | 1.72 MiB/s, done.
&gt;&gt; Resolving deltas: 100% (94741/94741), done.
&gt;&gt; $ cd kamailio2/
&gt;&gt; $ git checkout -b outbound origin/pd/outbound
&gt;&gt; Branch outbound set up to track remote branch pd/outbound from origin.
&gt;&gt; Switched to a new branch 'outbound'
&gt;&gt;
&gt;&gt; Regards,
&gt;&gt;
&gt;&gt; Peter
&gt;&gt;
&gt;&gt;&gt; Hello,
&gt;&gt;&gt;
&gt;&gt;&gt; what is the output of 'git branch'?
&gt;&gt;&gt;
&gt;&gt;&gt; Cheers,
&gt;&gt;&gt; Daniel
&gt;&gt;&gt;
&gt;&gt;&gt; On 8/14/12 1:09 AM, Peter Dunkley wrote:
&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I've been having some problems with git this evening.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Earlier today (at the office) I created a branch to start the Outbound
&gt;&gt;&gt;&gt; development on.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; This evening (at home, on another computer) I checked out this branch
&gt;&gt;&gt;&gt; using &quot;git checkout -b outbound origin/pd/outbound&quot;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I added some files, made some changes, and committed them to the local
&gt;&gt;&gt;&gt; branch, but I can't seem to push these changes.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; When I do &quot;git push&quot; I get &quot;Everything up-to-date&quot; - which is not the
&gt;&gt;&gt;&gt; case.  When I try something more specific like &quot;git push origin
&gt;&gt;&gt;&gt; origin/pd/outbound&quot; I get:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;     Total 0 (delta 0), reused 0 (delta 0)
&gt;&gt;&gt;&gt;     remote: error: hook declined to update
&gt;&gt;&gt;&gt; refs/remotes/origin/pd/outbound
&gt;&gt;&gt;&gt;     To ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router
&gt;&gt;&gt;&gt;      ! [remote rejected] origin/pd/outbound -&gt; origin/pd/outbound (hook
&gt;&gt;&gt;&gt; declined)
&gt;&gt;&gt;&gt;     error: failed to push some refs to
&gt;&gt;&gt;&gt; 'ssh://<A HREF="mailto:pd@git.sip-router.org">pd@git.sip-router.org</A>/sip-router'
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I have pushed some fixes to master this evening from this same computer
&gt;&gt;&gt;&gt; -
&gt;&gt;&gt;&gt; so it must be something to do with the branch or the &quot;git push&quot;
&gt;&gt;&gt;&gt; operation
&gt;&gt;&gt;&gt; itself.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I'm sure I've just done something stupid... but I can't think what it
&gt;&gt;&gt;&gt; might be.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Regards,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Peter
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; --
&gt;&gt;&gt; Daniel-Constantin Mierla - <A HREF="http://www.asipto.com">http://www.asipto.com</A>
&gt;&gt;&gt; <A HREF="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</A> - <A HREF="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</A>
&gt;&gt;&gt; Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 -
&gt;&gt;&gt; <A HREF="http://asipto.com/u/katu">http://asipto.com/u/katu</A>
&gt;&gt;&gt; Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 -
&gt;&gt;&gt; <A HREF="http://asipto.com/u/kpw">http://asipto.com/u/kpw</A>
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; Peter Dunkley
&gt;&gt; Technical Director
&gt;&gt; Crocodile RCS Ltd
&gt;&gt;
&gt;&gt;
&gt;

</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>