Re: git push refspec problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 7, 2007, at 10:22 AM, Johannes Gilger wrote:

Johannes Schindelin wrote:
Hi,

On Wed, 7 Nov 2007, James wrote:

      fetch = +refs/heads/*:refs/remotes/origin/*

This is a refspec.

      push = ssh://james@xxxxxxxxxxxxx/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


I guess I could use my ssh url for pulling, as well. I simply figured it would be easier to add an ssh URL for push (like I was doing manually) and be done with it. But it doesn't seem there's a super simple solution (i.e., my syntax was wrong in the config file) to using git for pull and ssh for push.

.james


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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux