Add test for checkout_tree

This commit is contained in:
Felix Krull authored and Colin Walters committed 2022-05-06 12:53:54 -04:00
1 parent 1068d4f619
commit 80de2aa2ea
2 files changed
+42 -5

No files matched your search

+2 -3
View File
@@ -1,7 +1,6 @@
use gio::NONE_CANCELLABLE;
use glib::prelude::*;
use glib::GString;
use ostree::prelude::*;
use std::path::Path;
#[derive(Debug)]
@@ -23,9 +22,9 @@ impl TestRepo {
TestRepo { dir, repo }
}
pub fn test_commit(&self) -> GString {
pub fn test_commit(&self, ref_: &str) -> GString {
let mtree = create_mtree(&self.repo);
commit(&self.repo, &mtree, "test")
commit(&self.repo, &mtree, ref_)
}
}