From: Gioele Barabucci <gioele@svario.it>
To: Elia Pinto <gitter.spiros@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git clone does not understand insteadOf URLs
Date: Sun, 26 May 2013 19:55:01 +0200 [thread overview]
Message-ID: <51A24C75.3090100@svario.it> (raw)
In-Reply-To: <CA+EOSB=ow9Vc2J8qb3GAp4xj2GgY8qes=5Q-k-rH6VsVLjzCsg@mail.gmail.com>
Il 26/05/2013 17:13, Elia Pinto ha scritto:
>> $ git clone remote-repo/ProjectA.git
>> fatal repository 'remote-repo/ProjectA.git' does not exist
>
> Why someone should be do something like this ? What is the use case ?
Simple, I keep all my projects on the same server, so I would like to
refer to that server + path using 'remote-repo'.
"git+ssh://git.example.org//users/gioele/projects" insteadOf "remote-repo"
I also helps me when I move all the projects from one path to another in
the remote server: I only need to change the path once in `~/.gitconfig`.
Please note that `git remote add` correctly understands
'remote-repo/ProjectA.git'. I was expecting that `clone` and `remote`
both used the same code to parse paths.
Regards,
--
Gioele Barabucci <gioele@svario.it>
next prev parent reply other threads:[~2013-05-26 17:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-25 20:23 git clone does not understand insteadOf URLs Gioele Barabucci
2013-05-26 15:13 ` Elia Pinto
2013-05-26 17:55 ` Gioele Barabucci [this message]
2013-05-26 18:00 ` Andreas Schwab
2013-05-26 18:09 ` Gioele Barabucci
2013-05-26 18:14 ` John Keeping
2013-05-26 18:21 ` Gioele Barabucci
2013-05-26 19:00 ` John Keeping
2013-05-26 19:03 ` Gioele Barabucci
2013-05-28 20:06 ` Junio C Hamano
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=51A24C75.3090100@svario.it \
--to=gioele@svario.it \
--cc=git@vger.kernel.org \
--cc=gitter.spiros@gmail.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