Remove unused fn: mkrepo()
This commit is contained in:
parent
9c2f4db03d
commit
fddd6ec4cb
1 changed files with 0 additions and 11 deletions
|
@ -11,14 +11,3 @@ use vcs::git::error::GitHookErrorKind as GHEK;
|
|||
use vcs::git::error::MapErrInto;
|
||||
use vcs::git::result::Result;
|
||||
|
||||
pub fn mkrepo(store: &Store) -> Result<()> {
|
||||
let mut opts = RepositoryInitOptions::new();
|
||||
opts.bare(false);
|
||||
opts.no_reinit(true);
|
||||
opts.mkdir(false);
|
||||
opts.external_template(false);
|
||||
Repository::init_opts(store.path(), &opts)
|
||||
.map(|_| ())
|
||||
.map_err_into(GHEK::MkRepo)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue