{"thread":{"id":"22199","subject":"remote to push to local branch: hung up unexpectedly","startedAt":"2010-01-13T13:08:43Z","lastAt":"2010-01-13T15:12:47Z","messageCount":5,"participants":["Michael S. Tsirkin","Tay Ray Chuan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"131466","messageId":"20100113130843.GA13545@redhat.com","threadId":"22199","inReplyTo":null,"subject":"remote to push to local branch: hung up unexpectedly","fromName":"Michael S. Tsirkin","fromEmail":"mst@redhat.com","sentAt":"2010-01-13T13:08:43Z","receivedAt":"2010-01-13T13:08:43Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"I have this in .config:\n\n[remote \"anthony\"]\n        url = .\n        push = +refs/heads/pci:refs/heads/for_anthony\n\nThe point is to save state when it's stable and safe for outside use.\n\nI hoped to make this shortcut for:\ngit push  . +refs/heads/pci:refs/heads/for_anthony\n\nBut this does:\n\nTotal 0 (delta 0), reused 0 (delta 0)\nTo .\n * [new branch]      pci -> for_anthony\nfatal: The remote end hung up unexpectedly\n\nSo the command works but seems to give an error at the end.\nSame effect with url = file://.\nwith url = /scm/qemu   (this is repo path)\nand with url = file:///scm/qemu\n\nreproduced with 1.6.6.144 and with 1.6.2.5\n\n-- \nMST\n"},{"id":"131474","messageId":"be6fef0d1001130615k17855680s57952498260ad09d@mail.gmail.com","threadId":"22199","inReplyTo":"20100113130843.GA13545@redhat.com","subject":"Re: remote to push to local branch: hung up unexpectedly","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-01-13T14:15:38Z","receivedAt":"2010-01-13T14:15:38Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:\n> with url = /scm/qemu   (this is repo path)\n\nAre you working in a \"normal\" git setup with a .git folder and the\nfiles checked out? Or are you working with a --bare repo?\n\n-- \nCheers,\nRay Chuan\n"},{"id":"131475","messageId":"20100113142800.GA13901@redhat.com","threadId":"22199","inReplyTo":"be6fef0d1001130615k17855680s57952498260ad09d@mail.gmail.com","subject":"Re: remote to push to local branch: hung up unexpectedly","fromName":"Michael S. Tsirkin","fromEmail":"mst@redhat.com","sentAt":"2010-01-13T14:28:00Z","receivedAt":"2010-01-13T14:28:00Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"On Wed, Jan 13, 2010 at 10:15:38PM +0800, Tay Ray Chuan wrote:\n> Hi,\n> \n> On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:\n> > with url = /scm/qemu   (this is repo path)\n> \n> Are you working in a \"normal\" git setup with a .git folder and the\n> files checked out? Or are you working with a --bare repo?\n\nIt's a normal setup.\n\n> -- \n> Cheers,\n> Ray Chuan\n"},{"id":"131477","messageId":"be6fef0d1001130649i6a5f4f29j10800f2532d97796@mail.gmail.com","threadId":"22199","inReplyTo":"20100113142800.GA13901@redhat.com","subject":"Re: remote to push to local branch: hung up unexpectedly","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-01-13T14:49:44Z","receivedAt":"2010-01-13T14:49:44Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Wed, Jan 13, 2010 at 10:28 PM, Michael S. Tsirkin <mst@redhat.com> wrote:\n> On Wed, Jan 13, 2010 at 10:15:38PM +0800, Tay Ray Chuan wrote:\n>> Hi,\n>>\n>> On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:\n>> > with url = /scm/qemu   (this is repo path)\n>>\n>> Are you working in a \"normal\" git setup with a .git folder and the\n>> files checked out? Or are you working with a --bare repo?\n>\n> It's a normal setup.\n\nI used this script with v1.6.2.5, push was ok.\n\n  #!/bin/bash\n  GITZ=\"/home/rctay/ext01/dev/git/git-1.6.2.5/git \\\n  --exec-path=/home/rctay/ext01/dev/git/git-1.6.2.5/\"\n  $GITZ --version\n\n  mkdir foo\n  cd foo\n  $GITZ init\n\n  echo hello > file1\n  $GITZ add file1\n  $GITZ commit -m \"new file\"\n  $GITZ checkout -b pci\n\n  $GITZ config remote.anthony.url .\n  $GITZ config remote.anthony.push +refs/heads/pci:refs/heads/anthony\n\n  $GITZ push anthony\n\n-- \nCheers,\nRay Chuan\n"},{"id":"131481","messageId":"20100113151247.GB14248@redhat.com","threadId":"22199","inReplyTo":"be6fef0d1001130649i6a5f4f29j10800f2532d97796@mail.gmail.com","subject":"Re: remote to push to local branch: hung up unexpectedly","fromName":"Michael S. Tsirkin","fromEmail":"mst@redhat.com","sentAt":"2010-01-13T15:12:47Z","receivedAt":"2010-01-13T15:12:47Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"On Wed, Jan 13, 2010 at 10:49:44PM +0800, Tay Ray Chuan wrote:\n> Hi,\n> \n> On Wed, Jan 13, 2010 at 10:28 PM, Michael S. Tsirkin <mst@redhat.com> wrote:\n> > On Wed, Jan 13, 2010 at 10:15:38PM +0800, Tay Ray Chuan wrote:\n> >> Hi,\n> >>\n> >> On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <mst@redhat.com> wrote:\n> >> > with url = /scm/qemu   (this is repo path)\n> >>\n> >> Are you working in a \"normal\" git setup with a .git folder and the\n> >> files checked out? Or are you working with a --bare repo?\n> >\n> > It's a normal setup.\n> \n> I used this script with v1.6.2.5, push was ok.\n\nAnd so it was for me. Also if I clone the tree everything\nis OK.  So it's specific to this tree.\n\n>   #!/bin/bash\n>   GITZ=\"/home/rctay/ext01/dev/git/git-1.6.2.5/git \\\n>   --exec-path=/home/rctay/ext01/dev/git/git-1.6.2.5/\"\n>   $GITZ --version\n> \n>   mkdir foo\n>   cd foo\n>   $GITZ init\n> \n>   echo hello > file1\n>   $GITZ add file1\n>   $GITZ commit -m \"new file\"\n>   $GITZ checkout -b pci\n> \n>   $GITZ config remote.anthony.url .\n>   $GITZ config remote.anthony.push +refs/heads/pci:refs/heads/anthony\n> \n>   $GITZ push anthony\n> \n> -- \n> Cheers,\n> Ray Chuan\n"}]}