From: Junio C Hamano <junkio@cox.net>
To: Andreas Ericsson <ae@op5.se>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 5/5] git-daemon support for user-relative paths.
Date: Fri, 18 Nov 2005 13:13:28 -0800 [thread overview]
Message-ID: <7viruphd6v.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <437DAA66.6070301@op5.se> (Andreas Ericsson's message of "Fri, 18 Nov 2005 11:18:14 +0100")
Andreas Ericsson <ae@op5.se> writes:
>>>-static int upload(char *dir)
>>>-{
>>>- /* Try paths in this order */
>>>- static const char *paths[] = { "%s", "%s/.git", "%s.git", "%s.git/.git", NULL };
>
>...
>
>> Under strict-path, I think not doing any DWIM like this is fine,
>> but otherwise I suspect changing this would break existing
>> remotes/origin file people may have. In addition enter_repo()
>> as posted does its own DWIM to chdir to ".git" unconditionally
>> as I pointed out...
>
> DWIM? That's an acronym I don't know.
"Do what I mean". It lets users say:
git clone git://sample.xz/pub/uemacs uemacs
when the repository on the server side is at any of the
following places:
/pub/uemacs
-- a regular naked repository, with subdirectories
/pub/uemacs/refs and /pub/uemacs/objects/, obviously.
/pub/uemacs/.git
-- /pub/uemacs is an ordinary repository with possibly a
working tree; has /pub/uemacs/.git/refs and friends.
/pub/uemacs.git
-- when above two do not exist but this does; a regular
naked repository, with subdirectories
/pub/uemacs.git/refs and friends.
/pub/uemacs.git/.git
-- no /pub/uemacs, and /pub/uemacs.git is an ordinary
repository with possibly a working tree; has
/pub/uemacs.git/.git/refs and friends.
which is a nice feature, but under --strict-path we need to be
careful that we apply whitelist correctly while allowing DWIM.
next prev parent reply other threads:[~2005-11-18 21:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-17 19:37 [PATCH 5/5] git-daemon support for user-relative paths Andreas Ericsson
2005-11-18 0:49 ` Junio C Hamano
2005-11-18 10:18 ` Andreas Ericsson
2005-11-18 17:57 ` Matthias Urlichs
2005-11-18 20:41 ` H. Peter Anvin
2005-11-18 21:13 ` Junio C Hamano [this message]
2005-11-18 23:19 ` Junio C Hamano
2005-11-18 23:45 ` Andreas Ericsson
2005-11-21 9:28 ` Junio C Hamano
2005-11-21 9:49 ` Junio C Hamano
2005-11-21 11:10 ` Andreas Ericsson
2005-11-21 23:29 ` 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=7viruphd6v.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=ae@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).