func (r *Repo) mostRecentCommit() (string, error) {
	command := gitBinary + ` --no-pager log -n 1 --pretty=format:"%H"`
	c, args, err := caddy.SplitCommandAndArgs(command)
	if err != nil {
		return "", err
	}
	return runCmdOutput(c, args, r.Path)
}
func (r *Repo) mostRecentCommit() (string, error) {
	command := gitBinary + ` --no-pager log -n 1 --pretty=format:"%H"`
	c, args, err := caddy.SplitCommandAndArgs(command)
	if err != nil {
		return "", err
	}
	return runCmdOutput(c, args, r.Path)
}
func ( r * Repo ) mostRecentCommit ( ) ( string , error ) { command := gitBinary + ` --no-pager log -n 1 --pretty=format:"%H"` c , args , err := caddy . SplitCommandAndArgs ( command ) if err != nil { return " " , err } return runCmdOutput ( c , args , r . Path ) }
// getMostRecentCommit gets the hash of the most recent commit to the
// repository. Useful for checking if changes occur.
getMostRecentCommit gets the hash of the most recent commit to the repository . Useful for checking if changes occur .