mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
feat(git): replace git2 with git-repository (#3883)
This commit is contained in:
@@ -34,6 +34,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
||||
|
||||
//Return None if not in git repository
|
||||
context.get_repo().ok()?;
|
||||
|
||||
if let Some(git_status) = git_status_wsl(context, &config) {
|
||||
if git_status.is_empty() {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user