I want to download (via curl or AJAX) the HEAD revision of a file in a Git repository. GitWeb is already installed.
I can get the formatted source code: http://server1.local/?p=Project&a=blob&f=Path/To/File.html
However, this does not seem to work when I use blob_plain as the value for "a"; blob_plain requires a hash in a "h" parameter - but I want to refer to the newest version of the file, not a specific one.
Is there something that needs to be configured? Am I using the right URL schema?