Function build_data::get_git_commit [−][src]
pub fn get_git_commit() -> Result<String, String>
Gets the latest git commit of the source code directory.
Example: "a5547bfb1edb9712588f0f85d3e2c8ba618ac51f"
Errors
Returns an error if it fails to execute the git
command.