From: Junio C Hamano <junkio@cox.net>
To: exon@op5.se (Andreas Ericsson)
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/2] git-clone: Keep remote names when cloning unless explicitly told not to.
Date: Thu, 10 Nov 2005 09:15:50 -0800 [thread overview]
Message-ID: <7vd5l81l15.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20051110115808.418125BF88@nox.op5.se> (Andreas Ericsson's message of "Thu, 10 Nov 2005 12:58:08 +0100 (CET)")
exon@op5.se (Andreas Ericsson) writes:
> + The name of a new directory to clone into. The "humanish"
> + part of the source repository is used if no directory is
> + explicitly given ("repo" for "/path/to/repo.git" and "foo"
> + for "host.xz:foo/.git"). Cloning into an existing directory
> + is not allowed.
>
> +# Try using "humanish" part of source repo if user didn't specify one
> +[ -z "$dir" ] && dir=$(echo "$repo" | sed -e 's#/*\.git$##' -e 's#.*[/:]##')
Micronit; if I version control contents of my home directory on
host.xz [*1*] under git, I would say host.xz:.git/ when cloning
it, wouldn't I?
Maybe we would want to check if the resulting $dir makes sense
after this step.
[Footnote]
*1* ... I wouldn't personally, but some people are known to do
that.
next prev parent reply other threads:[~2005-11-10 17:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 11:58 [PATCH 1/2] git-clone: Keep remote names when cloning unless explicitly told not to Andreas Ericsson
2005-11-10 17:15 ` Junio C Hamano [this message]
2005-11-10 17:49 ` Andreas Ericsson
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=7vd5l81l15.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=exon@op5.se \
--cc=git@vger.kernel.org \
/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).