Thread (11 messages) 11 messages, 2 authors, 2016-06-15

Re: lost again on syntax change - local repository?

flat view

From: Petr Baudis <hidden>
Date: 2016-06-15 22:42:13

Dear diary, on Mon, Nov 28, 2005 at 02:09:40PM CET, I got a letter
where "Randal L. Schwartz" [off-list ref] said that...
quoted
quoted
quoted
quoted
quoted
"Petr" == Petr Baudis [off-list ref] writes:
Petr> Dear diary, on Mon, Nov 28, 2005 at 03:01:18AM CET, I got a letter
Petr> where "Randal L. Schwartz" [off-list ref] said that...
quoted
quoted
localhost:..Git/Play/local.git % cg-branch-add origin "$(cd ..; pwd)/remote.git#master"
Petr> BTW, it should be fine to just say ../remote.git#master.

Maybe this is why yours worked.

Ahh, yes, it did.

So, cg-push treats '../..' differently from '/foo/bar/...'.

This is bad.  That's the bug.
Nope, the relative path is resolved at the time of adding the branch.
Check for yourself:

xpasky@machine[0:0]~/git-devel/x/local.git$ cg-branch-add origin "$(cd ..; pwd)/remote.git#master"
xpasky@machine[0:0]~/git-devel/x/local.git$ cg-branch-add origin2 ../remote.git#master
xpasky@machine[0:0]~/git-devel/x/local.git$ cg-branch-ls
origin  /home/xpasky/git-devel/x/remote.git#master
origin2 /home/xpasky/git-devel/x/remote.git#master

Pushing to both works fine.
cg-push treats "../" as a local filesystem, and "/..." as git-ssh.
This is a change from before.

Please make it recognize "/..." as a local file again.
It would sure be bad if this was the case. However I'm really sorry, but
I still can't reproduce it.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help