In Git2 error fixing, opening the repo is still currently unavailable.

This commit is contained in:
2026-01-30 18:29:11 +08:00
parent 2a57946421
commit 1cbb01ccc4
10 changed files with 42 additions and 19 deletions

View File

@@ -77,7 +77,7 @@ pub struct CommitCommand {
impl CommitCommand {
pub async fn execute(&self) -> Result<()> {
// Find git repository
let repo = find_repo(".")?;
let repo = find_repo(std::env::current_dir()?.as_path())?;
// Check for changes
let status = repo.status_summary()?;