Clone and checkout git repos. This is mostly a wrapper for clj-jgit
Clone and checkout git repos. This is mostly a wrapper for `clj-jgit`
(clone {:keys [url dir] :as opts})
Clones the repo at given url, and checks out the given branch. Writes the
files to dir
. Returns a repo object that can be passed to other functions.
Clones the repo at given url, and checks out the given branch. Writes the files to `dir`. Returns a repo object that can be passed to other functions.
(clone+checkout {:keys [commit-id] :as opts})
Clones the repo, then performs a checkout of the given commit id
Clones the repo, then performs a checkout of the given commit id
(delete-repo repo)
Deletes the previously checked out local repo
Deletes the previously checked out local repo
(prepare-ssh-keys {:keys [ssh-keys ssh-keys-dir] :as conf})
Writes any ssh keys in the options to a temp directory and returns their
file names and key dir to be used by clj-jgit. If an ssh-keys-dir
is
configured, but no ssh-keys
, then it is assumed the keys are already
in place.
Writes any ssh keys in the options to a temp directory and returns their file names and key dir to be used by clj-jgit. If an `ssh-keys-dir` is configured, but no `ssh-keys`, then it is assumed the keys are already in place.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close