git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* remote to push to local branch: hung up unexpectedly
@ 2010-01-13 13:08 Michael S. Tsirkin
  2010-01-13 14:15 ` Tay Ray Chuan
  0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2010-01-13 13:08 UTC (permalink / raw)
  To: git

I have this in .config:

[remote "anthony"]
        url = .
        push = +refs/heads/pci:refs/heads/for_anthony

The point is to save state when it's stable and safe for outside use.

I hoped to make this shortcut for:
git push  . +refs/heads/pci:refs/heads/for_anthony

But this does:

Total 0 (delta 0), reused 0 (delta 0)
To .
 * [new branch]      pci -> for_anthony
fatal: The remote end hung up unexpectedly

So the command works but seems to give an error at the end.
Same effect with url = file://.
with url = /scm/qemu   (this is repo path)
and with url = file:///scm/qemu

reproduced with 1.6.6.144 and with 1.6.2.5

-- 
MST

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote to push to local branch: hung up unexpectedly
  2010-01-13 13:08 remote to push to local branch: hung up unexpectedly Michael S. Tsirkin
@ 2010-01-13 14:15 ` Tay Ray Chuan
  2010-01-13 14:28   ` Michael S. Tsirkin
  0 siblings, 1 reply; 5+ messages in thread
From: Tay Ray Chuan @ 2010-01-13 14:15 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: git

Hi,

On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> with url = /scm/qemu   (this is repo path)

Are you working in a "normal" git setup with a .git folder and the
files checked out? Or are you working with a --bare repo?

-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote to push to local branch: hung up unexpectedly
  2010-01-13 14:15 ` Tay Ray Chuan
@ 2010-01-13 14:28   ` Michael S. Tsirkin
  2010-01-13 14:49     ` Tay Ray Chuan
  0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2010-01-13 14:28 UTC (permalink / raw)
  To: Tay Ray Chuan; +Cc: git

On Wed, Jan 13, 2010 at 10:15:38PM +0800, Tay Ray Chuan wrote:
> Hi,
> 
> On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> > with url = /scm/qemu   (this is repo path)
> 
> Are you working in a "normal" git setup with a .git folder and the
> files checked out? Or are you working with a --bare repo?

It's a normal setup.

> -- 
> Cheers,
> Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote to push to local branch: hung up unexpectedly
  2010-01-13 14:28   ` Michael S. Tsirkin
@ 2010-01-13 14:49     ` Tay Ray Chuan
  2010-01-13 15:12       ` Michael S. Tsirkin
  0 siblings, 1 reply; 5+ messages in thread
From: Tay Ray Chuan @ 2010-01-13 14:49 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: git

Hi,

On Wed, Jan 13, 2010 at 10:28 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> On Wed, Jan 13, 2010 at 10:15:38PM +0800, Tay Ray Chuan wrote:
>> Hi,
>>
>> On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
>> > with url = /scm/qemu   (this is repo path)
>>
>> Are you working in a "normal" git setup with a .git folder and the
>> files checked out? Or are you working with a --bare repo?
>
> It's a normal setup.

I used this script with v1.6.2.5, push was ok.

  #!/bin/bash
  GITZ="/home/rctay/ext01/dev/git/git-1.6.2.5/git \
  --exec-path=/home/rctay/ext01/dev/git/git-1.6.2.5/"
  $GITZ --version

  mkdir foo
  cd foo
  $GITZ init

  echo hello > file1
  $GITZ add file1
  $GITZ commit -m "new file"
  $GITZ checkout -b pci

  $GITZ config remote.anthony.url .
  $GITZ config remote.anthony.push +refs/heads/pci:refs/heads/anthony

  $GITZ push anthony

-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote to push to local branch: hung up unexpectedly
  2010-01-13 14:49     ` Tay Ray Chuan
@ 2010-01-13 15:12       ` Michael S. Tsirkin
  0 siblings, 0 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2010-01-13 15:12 UTC (permalink / raw)
  To: Tay Ray Chuan; +Cc: git

On Wed, Jan 13, 2010 at 10:49:44PM +0800, Tay Ray Chuan wrote:
> Hi,
> 
> On Wed, Jan 13, 2010 at 10:28 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> > On Wed, Jan 13, 2010 at 10:15:38PM +0800, Tay Ray Chuan wrote:
> >> Hi,
> >>
> >> On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> >> > with url = /scm/qemu   (this is repo path)
> >>
> >> Are you working in a "normal" git setup with a .git folder and the
> >> files checked out? Or are you working with a --bare repo?
> >
> > It's a normal setup.
> 
> I used this script with v1.6.2.5, push was ok.

And so it was for me. Also if I clone the tree everything
is OK.  So it's specific to this tree.

>   #!/bin/bash
>   GITZ="/home/rctay/ext01/dev/git/git-1.6.2.5/git \
>   --exec-path=/home/rctay/ext01/dev/git/git-1.6.2.5/"
>   $GITZ --version
> 
>   mkdir foo
>   cd foo
>   $GITZ init
> 
>   echo hello > file1
>   $GITZ add file1
>   $GITZ commit -m "new file"
>   $GITZ checkout -b pci
> 
>   $GITZ config remote.anthony.url .
>   $GITZ config remote.anthony.push +refs/heads/pci:refs/heads/anthony
> 
>   $GITZ push anthony
> 
> -- 
> Cheers,
> Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-13 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 13:08 remote to push to local branch: hung up unexpectedly Michael S. Tsirkin
2010-01-13 14:15 ` Tay Ray Chuan
2010-01-13 14:28   ` Michael S. Tsirkin
2010-01-13 14:49     ` Tay Ray Chuan
2010-01-13 15:12       ` Michael S. Tsirkin

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).