is_bare {git2r} | R Documentation |
Check if repository is bare
Description
Check if repository is bare
Usage
is_bare(repo = ".")
Arguments
repo |
a path to a repository or a |
Value
TRUE
if bare repository, else FALSE
See Also
Examples
## Not run:
## Initialize a repository
path <- tempfile(pattern="git2r-")
dir.create(path)
repo <- init(path)
is_bare(repo)
## Initialize a bare repository
path_bare <- tempfile(pattern="git2r-")
dir.create(path_bare)
repo_bare <- init(path_bare, bare = TRUE)
is_bare(repo_bare)
## End(Not run)
[Package git2r version 0.33.0 Index]