Fix repo change detection
This commit is contained in:
@@ -749,7 +749,7 @@ fn remove_worktree(
|
|||||||
|
|
||||||
if !force {
|
if !force {
|
||||||
let status = get_repo_status(&worktree_repo, false);
|
let status = get_repo_status(&worktree_repo, false);
|
||||||
if status.changes.is_some() {
|
if status.changes.unwrap().is_some() {
|
||||||
return Err(WorktreeRemoveFailureReason::Changes(String::from(
|
return Err(WorktreeRemoveFailureReason::Changes(String::from(
|
||||||
"Changes found in worktree",
|
"Changes found in worktree",
|
||||||
)));
|
)));
|
||||||
|
|||||||
Reference in New Issue
Block a user