is_bare | R Documentation |
Check if repository is bare
is_bare(repo = ".")
repo |
a path to a repository or a |
TRUE
if bare repository, else FALSE
init
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.