Allow to get the current sha from a file.

There is no git information in enterprise.