Properly report status on worktree repos

This commit is contained in:
2022-01-04 12:22:02 +01:00
parent f9d9dc587a
commit 31b90af066
2 changed files with 18 additions and 19 deletions

View File

@@ -790,11 +790,7 @@ impl Repo {
};
let changes = match is_worktree {
true => {
return Err(String::from(
"Cannot get changes as this is a bare worktree repository",
))
}
true => None,
false => {
let statuses = self
.0