remote to push to local branch: hung up unexpectedly
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
Signature · 1 line
MST
Hi,
Quoted 1 line · Michael S. Tsirkin
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?
Signature · 2 lines
Cheers, Ray Chuan
Quoted 7 lines · Tay Ray Chuan
Hi,
Quoted 1 line · Michael S. Tsirkin
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.
Quoted 3 lines
Signature · 2 lines
Cheers, Ray Chuan
Hi,
Quoted 10 lines · Michael S. Tsirkin
Quoted 7 lines · Tay Ray Chuan
Hi,
Quoted 1 line · Michael S. Tsirkin
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
Signature · 2 lines
Cheers, Ray Chuan
Quoted 7 lines · Tay Ray Chuan
Hi,
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Tay Ray Chuan
Hi,
On Wed, Jan 13, 2010 at 9:08 PM, Michael S. Tsirkin <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
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.
Quoted 22 lines
#!/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 --versionmkdir foo
cd foo
$GITZ initecho 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
Signature · 2 lines
Cheers, Ray Chuan