summaryrefslogtreecommitdiff
path: root/src/git.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/git.rs b/src/git.rs
index e69abb9..818d697 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -1,7 +1,7 @@
use crate::error::CapnError;
use crate::keyring::Keyring;
use git2;
-use git2::{ErrorClass, ErrorCode, ObjectType, Oid, Repository};
+use git2::{build::RepoBuilder, ErrorClass, ErrorCode, ObjectType, Oid, Repository};
use std::cell::RefCell;
use std::collections::HashMap;
use std::error::Error;
@@ -509,7 +509,9 @@ impl TempRepo {
"Path to the repo being verified was not valid UTF-8",
)))?;
return Ok(TempRepo {
- repo: Repository::clone(src_path, &tmp_repo_path)?,
+ repo: RepoBuilder::new()
+ .bare(true)
+ .clone(src_path, &tmp_repo_path)?,
});
}
};