Skip to content

Fix issue where stage action is ignored when mamediff runs outside a Git top-level directory #7

Merged
sile merged 1 commit intomainfrom
non-root-dir
Feb 15, 2025
Merged

Fix issue where stage action is ignored when mamediff runs outside a Git top-level directory #7
sile merged 1 commit intomainfrom
non-root-dir

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Feb 15, 2025

Copilot Summary

This pull request includes a change to the src/git.rs file to improve the method for checking if the current directory is a Git repository. The most important change is the modification of the is_available function to use a different Git command and handle the current directory more robustly.

Changes to Git directory check:

  • src/git.rs: Modified the is_available function to use the rev-parse --show-toplevel command and set the current directory to the root of the Git repository. This change improves the reliability of checking if the current directory is within a Git repository.

@sile sile merged commit d1ce943 into main Feb 15, 2025
9 checks passed
@sile sile deleted the non-root-dir branch February 15, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant