mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-18 18:08:07 +03:00
Remove some external context from git status test
This commit is contained in:
parent
f55ca7ae3c
commit
9800a149a6
@ -3556,6 +3556,7 @@ impl<'a> TryFrom<(&'a CharBag, proto::Entry)> for Entry {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use fs::{FakeFs, RealFs};
|
||||
use git2::Signature;
|
||||
use gpui::{executor::Deterministic, TestAppContext};
|
||||
use pretty_assertions::assert_eq;
|
||||
use rand::prelude::*;
|
||||
@ -3894,7 +3895,7 @@ mod tests {
|
||||
|
||||
#[track_caller]
|
||||
fn git_commit(msg: &'static str, repo: &git2::Repository) {
|
||||
let signature = repo.signature().unwrap();
|
||||
let signature = Signature::now("test", "test@zed.dev").unwrap();
|
||||
let oid = repo.index().unwrap().write_tree().unwrap();
|
||||
let tree = repo.find_tree(oid).unwrap();
|
||||
if let Some(head) = repo.head().ok() {
|
||||
|
Loading…
Reference in New Issue
Block a user