git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: lost again on syntax change - local repository?

From
Petr Baudis <pasky@suse.cz>
Date
Nov 28, 2005, 13:41 UTC
Message-ID
<20051128134111.GP22159@pasky.or.cz>
In-Reply-To
<86d5kk7wbv.fsf@blue.stonehenge.com>

Dear diary, on Mon, Nov 28, 2005 at 02:09:40PM CET, I got a letter where "Randal L. Schwartz" <merlyn@stonehenge.com> said that...

Show 15 quoted lines
> >>>>> "Petr" == Petr Baudis <pasky@suse.cz> writes:
> 
> Petr> Dear diary, on Mon, Nov 28, 2005 at 03:01:18AM CET, I got a letter
> Petr> where "Randal L. Schwartz" <merlyn@stonehenge.com> said that...
> >> 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.
Previous: Randal L. SchwartzNext: Randal L. Schwartz
Message 7 of 14 in “lost again on syntax change - local repository?”
  1. Randal L. SchwartzNov 28, 2005
  2. Junio C HamanoNov 28, 2005
  3. Alecs KingNov 28, 2005
  4. Randal L. SchwartzNov 28, 2005
  5. Petr BaudisNov 28, 2005
  6. Randal L. SchwartzNov 28, 2005
  7. Petr BaudisNov 28, 2005
  8. Randal L. SchwartzNov 28, 2005
  9. Randal L. SchwartzNov 28, 2005
  10. Petr BaudisNov 28, 2005
  11. Randal L. SchwartzNov 28, 2005
  12. Petr BaudisNov 28, 2005
  13. Randal L. SchwartzNov 28, 2005
  14. Petr BaudisNov 28, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.