* importance of .git extension for bare repos
@ 2012-02-16 1:04 Neal Kreitzinger
2012-02-16 1:38 ` Tay Ray Chuan
0 siblings, 1 reply; 3+ messages in thread
From: Neal Kreitzinger @ 2012-02-16 1:04 UTC (permalink / raw)
To: git
I have a user who has created bare repos without naming them with the .git
extension. As a result, the file paths are MYBARE/config instead of
MYBARE.git/config, etc. Is this a supported naming convention for bare
repos in git.git, or is it going to have some problems?
v/r,
neal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: importance of .git extension for bare repos
2012-02-16 1:04 importance of .git extension for bare repos Neal Kreitzinger
@ 2012-02-16 1:38 ` Tay Ray Chuan
2012-02-16 2:30 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Tay Ray Chuan @ 2012-02-16 1:38 UTC (permalink / raw)
To: Neal Kreitzinger; +Cc: git
I don't believe its significant to git itself, it's just a convention
for us humans.
--
Cheers,
Ray Chuan
On Thu, Feb 16, 2012 at 9:04 AM, Neal Kreitzinger <neal@rsss.com> wrote:
> I have a user who has created bare repos without naming them with the .git
> extension. As a result, the file paths are MYBARE/config instead of
> MYBARE.git/config, etc. Is this a supported naming convention for bare
> repos in git.git, or is it going to have some problems?
>
> v/r,
> neal
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: importance of .git extension for bare repos
2012-02-16 1:38 ` Tay Ray Chuan
@ 2012-02-16 2:30 ` Jeff King
0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2012-02-16 2:30 UTC (permalink / raw)
To: Tay Ray Chuan; +Cc: Neal Kreitzinger, git
On Thu, Feb 16, 2012 at 09:38:08AM +0800, Tay Ray Chuan wrote:
> I don't believe its significant to git itself, it's just a convention
> for us humans.
That's not entirely true. If you try to access a repository by name
(e.g., "git clone foo", "git fetch foo"), git will look for "foo.git".
This magic lookup works for local repositories, and for remote
repositories served over ssh or by git-daemon. I think it should also
work for smart-http, but I didn't check. It doesn't work for dumb http
(because it would involve making several exploratory http requests).
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-16 2:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 1:04 importance of .git extension for bare repos Neal Kreitzinger
2012-02-16 1:38 ` Tay Ray Chuan
2012-02-16 2:30 ` Jeff King
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).