mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-26 11:37:32 +00:00
fix(git_state): panic on interactive rebase (#1552)
This commit is contained in:
parent
0912ed0058
commit
c0b6e97f57
@ -133,8 +133,10 @@ fn describe_rebase<'a>(root: &'a PathBuf, rebase_config: &'a str) -> StateDescri
|
|||||||
Some((current, total))
|
Some((current, total))
|
||||||
};
|
};
|
||||||
|
|
||||||
let progress = if has_path("rebase-merge") {
|
let progress = if has_path("rebase-merge/msgnum") {
|
||||||
paths_to_progress("rebase-merge/msgnum", "rebase-merge/end")
|
paths_to_progress("rebase-merge/msgnum", "rebase-merge/end")
|
||||||
|
} else if has_path("rebase-merge/onto") {
|
||||||
|
Some((1, 1))
|
||||||
} else if has_path("rebase-apply") {
|
} else if has_path("rebase-apply") {
|
||||||
paths_to_progress("rebase-apply/next", "rebase-apply/last")
|
paths_to_progress("rebase-apply/next", "rebase-apply/last")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user