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:
Jakob Kirsch 2025-06-04 00:35:23 +02:00 committed by Fintan Halpenny
parent a8ab718b98
commit 9d4aa59a12
1 changed files with 3 additions and 1 deletions

View File

@ -259,7 +259,9 @@ pub fn checkout<P: AsRef<Path>, S: storage::ReadStorage>(
let project = doc.project()?;
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 url = git::Url::from(proj);