What is the MIME type of a Git repository?
I’d like to link it from a project web page via <link rel="vcs" type="???" href="http://git.example.org/foo.git"/>, but for that I need to know the MIME type of a whole git repository.
The first file that git fetches from the HTTP transport is /info/refs?service=git-upload-pack, and it has a MIME type of application/x-git-upload-pack-advertisement. But that’s not for the whole repository.
There’s a guy that proposes to use
for that purpose.
It strikes me odd that someone that is also called cweiske has a github project called phorkie that exactly suggests the following:
(Markup by me)
Did you already know the solution and want to have it confirmed?
Edit:
As OP mentions in his comment, he’s searching for a different way (i.e. not
rel="vcs-git").As far as I could tell
So, let’s get it on:
X-prefix is used for non standard files.gitSo, why not use
application/x-gitfrom now on…