git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Gilger <heipei@hackvalue.de>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: James <jtp@nc.rr.com>, git@vger.kernel.org
Subject: Re: git push refspec problem
Date: Wed, 07 Nov 2007 16:22:58 +0100	[thread overview]
Message-ID: <4731D852.2080500@hackvalue.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0711071510480.4362@racer.site>

Johannes Schindelin wrote:
> Hi,
> 
> On Wed, 7 Nov 2007, James wrote:
> 
>>        fetch = +refs/heads/*:refs/remotes/origin/*
> 
> This is a refspec.
> 
>>        push = ssh://james@my.server.com/home/james/scm/git/project.git/
> 
> This is a URL.  It does not specify any refs.  But "push =" expects a URL.

I think Johannes meant to say "But 'push =' expects a refspec." (the
manpage even says so).

About your problem: If you want to pull from a git:// repository and
push to another with ssh:// (or in general when having two different
repositories for pushing and fetching) in my novice understanding
you would need two remotes. In your case, can't you just use your
ssh-url for fetching as well?

Regards,
Jojo

-- 
Johannes Gilger <heipei@hackvalue.de>
http://hackvalue.de/heipei/
GPG-Key: 0x42F6DE81
GPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81

  parent reply	other threads:[~2007-11-07 15:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 15:01 git push refspec problem James
2007-11-07 15:11 ` Johannes Schindelin
2007-11-07 15:20   ` Pierre Habouzit
2007-11-07 15:23     ` James
2007-11-07 15:26       ` Johannes Gilger
2007-11-07 15:38         ` Pierre Habouzit
2007-11-07 15:22   ` Johannes Gilger [this message]
2007-11-07 15:30     ` James
2007-11-07 20:40       ` Daniel Barkalow
2007-11-07 15:39     ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4731D852.2080500@hackvalue.de \
    --to=heipei@hackvalue.de \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=jtp@nc.rr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).