Remove some external context from git status test
This commit is contained in:
@@ -3556,6 +3556,7 @@ impl<'a> TryFrom<(&'a CharBag, proto::Entry)> for Entry {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use fs::{FakeFs, RealFs};
|
use fs::{FakeFs, RealFs};
|
||||||
|
use git2::Signature;
|
||||||
use gpui::{executor::Deterministic, TestAppContext};
|
use gpui::{executor::Deterministic, TestAppContext};
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
use rand::prelude::*;
|
use rand::prelude::*;
|
||||||
@@ -3894,7 +3895,7 @@ mod tests {
|
|||||||
|
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
fn git_commit(msg: &'static str, repo: &git2::Repository) {
|
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 oid = repo.index().unwrap().write_tree().unwrap();
|
||||||
let tree = repo.find_tree(oid).unwrap();
|
let tree = repo.find_tree(oid).unwrap();
|
||||||
if let Some(head) = repo.head().ok() {
|
if let Some(head) = repo.head().ok() {
|
||||||
|
|||||||
Reference in New Issue
Block a user