create signature when making test commit

This commit is contained in:
Nikita Galaiko 2023-02-20 15:12:58 +01:00
parent 390bb40ced
commit fe1c2fc577
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ fn test_project() -> Result<projects::Project> {
let repo = git2::Repository::init(&path)?;
let mut index = repo.index()?;
let oid = index.write_tree()?;
let sig = repo.signature()?;
let sig = git2::Signature::now("test", "test@email.com").unwrap();
let _commit = repo.commit(
Some("HEAD"),
&sig,

View File

@ -10,7 +10,7 @@ fn test_project() -> Result<(git2::Repository, projects::Project)> {
let repo = git2::Repository::init(&path)?;
let mut index = repo.index()?;
let oid = index.write_tree()?;
let sig = repo.signature()?;
let sig = git2::Signature::now("test", "test@email.com").unwrap();
let _commit = repo.commit(
Some("HEAD"),
&sig,