Skip to content

Commit fe6f069

Browse files
authored
Update clone function docs and params (#475)
1 parent ceda34c commit fe6f069

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

R/repository.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ init <- function(path = ".", bare = FALSE, branch = NULL) {
208208

209209
##' Clone a remote repository
210210
##'
211-
##' @param url The remote repository to clone
211+
##' @param url The remote repository to clone, or a local repository path.
212212
##' @param local_path Local directory to clone to.
213213
##' @param bare Create a bare repository. Default is FALSE.
214214
##' @param branch The name of the branch to checkout. Default is NULL
@@ -267,8 +267,8 @@ init <- function(path = ".", bare = FALSE, branch = NULL) {
267267
##' commits(repo_1)
268268
##' commits(repo_2)
269269
##' }
270-
clone <- function(url = NULL,
271-
local_path = NULL,
270+
clone <- function(url,
271+
local_path,
272272
bare = FALSE,
273273
branch = NULL,
274274
checkout = TRUE,

man/clone.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)