Support HEAD^ in fake repo reset implementation

Anthony Eid created

Change summary

crates/fs/src/fake_git_repo.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/fs/src/fake_git_repo.rs 🔗

@@ -231,7 +231,7 @@ impl GitRepository for FakeGitRepository {
         _env: Arc<HashMap<String, String>>,
     ) -> BoxFuture<'_, Result<()>> {
         self.with_state_async(true, move |state| {
-            let pop_count = if commit == "HEAD~" {
+            let pop_count = if commit == "HEAD~" || commit == "HEAD^" {
                 1
             } else if let Some(suffix) = commit.strip_prefix("HEAD~") {
                 suffix