mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
create signature when making test commit
This commit is contained in:
parent
390bb40ced
commit
fe1c2fc577
@ -10,7 +10,7 @@ fn test_project() -> Result<projects::Project> {
|
|||||||
let repo = git2::Repository::init(&path)?;
|
let repo = git2::Repository::init(&path)?;
|
||||||
let mut index = repo.index()?;
|
let mut index = repo.index()?;
|
||||||
let oid = index.write_tree()?;
|
let oid = index.write_tree()?;
|
||||||
let sig = repo.signature()?;
|
let sig = git2::Signature::now("test", "test@email.com").unwrap();
|
||||||
let _commit = repo.commit(
|
let _commit = repo.commit(
|
||||||
Some("HEAD"),
|
Some("HEAD"),
|
||||||
&sig,
|
&sig,
|
||||||
|
@ -10,7 +10,7 @@ fn test_project() -> Result<(git2::Repository, projects::Project)> {
|
|||||||
let repo = git2::Repository::init(&path)?;
|
let repo = git2::Repository::init(&path)?;
|
||||||
let mut index = repo.index()?;
|
let mut index = repo.index()?;
|
||||||
let oid = index.write_tree()?;
|
let oid = index.write_tree()?;
|
||||||
let sig = repo.signature()?;
|
let sig = git2::Signature::now("test", "test@email.com").unwrap();
|
||||||
let _commit = repo.commit(
|
let _commit = repo.commit(
|
||||||
Some("HEAD"),
|
Some("HEAD"),
|
||||||
&sig,
|
&sig,
|
||||||
|
Loading…
Reference in New Issue
Block a user