class Raykit::Git::Repository

def latest_commit(branch)

The latest commit id for a branch of the repostiory
def latest_commit(branch)
    if(checkout_local_clone_directory_branch(branch))
        text=`git log -n 1`
        scan=text.scan(/commit ([\w]+)\s/)
        return scan[0][0].to_s 
    end
    ''
end