Current_gitSourceIntegration with Git.
clone ~schedule ~gref uri evaluates to the head commit of uri's gref branch (default: "master").
val with_checkout :
?pool:unit Current.Pool.t ->
job:Current.Job.t ->
Commit.t ->
(Fpath.t -> 'a Current.or_error Lwt.t) ->
'a Current.or_error Lwt.twith_checkout ~job c fn clones c to a temporary directory and runs fn tmpdir. When it returns, the directory is deleted.