diff --git a/R/repository.R b/R/repository.R index ca6ae781..ccb175aa 100644 --- a/R/repository.R +++ b/R/repository.R @@ -208,7 +208,7 @@ init <- function(path = ".", bare = FALSE, branch = NULL) { ##' Clone a remote repository ##' -##' @param url The remote repository to clone +##' @param url The remote repository to clone, or a local repository path. ##' @param local_path Local directory to clone to. ##' @param bare Create a bare repository. Default is FALSE. ##' @param branch The name of the branch to checkout. Default is NULL @@ -267,8 +267,8 @@ init <- function(path = ".", bare = FALSE, branch = NULL) { ##' commits(repo_1) ##' commits(repo_2) ##' } -clone <- function(url = NULL, - local_path = NULL, +clone <- function(url, + local_path, bare = FALSE, branch = NULL, checkout = TRUE, diff --git a/man/clone.Rd b/man/clone.Rd index 53d7f32a..d3745ec1 100644 --- a/man/clone.Rd +++ b/man/clone.Rd @@ -5,8 +5,8 @@ \title{Clone a remote repository} \usage{ clone( - url = NULL, - local_path = NULL, + url, + local_path, bare = FALSE, branch = NULL, checkout = TRUE, @@ -15,7 +15,7 @@ clone( ) } \arguments{ -\item{url}{The remote repository to clone} +\item{url}{The remote repository to clone, or a local repository path.} \item{local_path}{Local directory to clone to.}