radicle: add .external_template(false) to libgit2 call
Without this, rad clone fails with: Error: checkout: git: failed to initialize repository with template 'hooks/README.sample': Permission denied; class=Os (2)
This commit is contained in:
parent
a8ab718b98
commit
9d4aa59a12
|
|
@ -259,7 +259,9 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
|
||||||
let project = doc.project()?;
|
let project = doc.project()?;
|
||||||
|
|
||||||
let mut opts = git2::RepositoryInitOptions::new();
|
let mut opts = git2::RepositoryInitOptions::new();
|
||||||
opts.no_reinit(true).description(project.description());
|
opts.no_reinit(true)
|
||||||
|
.external_template(false)
|
||||||
|
.description(project.description());
|
||||||
|
|
||||||
let repo = git2::Repository::init_opts(path.as_ref(), &opts)?;
|
let repo = git2::Repository::init_opts(path.as_ref(), &opts)?;
|
||||||
let url = git::Url::from(proj);
|
let url = git::Url::from(proj);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue