git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@suse.cz>
To: "Randal L. Schwartz" <merlyn@stonehenge.com>
Cc: git@vger.kernel.org
Subject: Re: lost again on syntax change - local repository?
Date: Mon, 28 Nov 2005 14:41:11 +0100	[thread overview]
Message-ID: <20051128134111.GP22159@pasky.or.cz> (raw)
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...
> >>>>> "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.

  reply	other threads:[~2005-11-28 13:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28  2:01 lost again on syntax change - local repository? Randal L. Schwartz
2005-11-28  5:11 ` Junio C Hamano
2005-11-28  6:36   ` Alecs King
2005-11-28 13:04   ` Randal L. Schwartz
2005-11-28 10:48 ` Petr Baudis
2005-11-28 13:09   ` Randal L. Schwartz
2005-11-28 13:41     ` Petr Baudis [this message]
2005-11-28 13:45       ` Randal L. Schwartz
2005-11-28 13:59         ` Randal L. Schwartz
2005-11-28 14:34         ` Petr Baudis
2005-11-28 14:46           ` Randal L. Schwartz
2005-11-28 19:15             ` Petr Baudis
2005-11-28 19:25               ` Randal L. Schwartz
2005-11-28 20:53                 ` Petr Baudis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051128134111.GP22159@pasky.or.cz \
    --to=pasky@suse.cz \
    --cc=git@vger.kernel.org \
    --cc=merlyn@stonehenge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).