importance of .git extension for bare repos
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
I don't believe its significant to git itself, it's just a convention for us humans.
Signature · 2 lines
Cheers, Ray Chuan
Quoted 14 lines · Neal Kreitzinger
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Tay Ray Chuan
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