mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
fix test
This commit is contained in:
parent
d65f723ec0
commit
6ff0d551eb
@ -129,11 +129,14 @@ mod tests {
|
|||||||
let mut index = repo.index().unwrap();
|
let mut index = repo.index().unwrap();
|
||||||
index.add_path(&PathBuf::from("foo.txt")).unwrap();
|
index.add_path(&PathBuf::from("foo.txt")).unwrap();
|
||||||
let oid = index.write_tree().unwrap();
|
let oid = index.write_tree().unwrap();
|
||||||
|
let name = "Your Name";
|
||||||
|
let email = "your.email@example.com";
|
||||||
|
let signature = git2::Signature::now(name, email).unwrap();
|
||||||
let commit_id = repo
|
let commit_id = repo
|
||||||
.commit(
|
.commit(
|
||||||
Some("HEAD"),
|
Some("HEAD"),
|
||||||
&repo.signature().unwrap(),
|
&signature,
|
||||||
&repo.signature().unwrap(),
|
&signature,
|
||||||
"initial commit",
|
"initial commit",
|
||||||
&repo.find_tree(oid).unwrap(),
|
&repo.find_tree(oid).unwrap(),
|
||||||
&[],
|
&[],
|
||||||
|
Loading…
Reference in New Issue
Block a user