Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Enhance commit existence checks in GitRepository (#23)
- Added a new method `commitExistsLocally` to verify if a commit exists in the local repository. - Updated the `IsAncestor` method to check for local commit existence before attempting to fetch, improving reliability in ancestor checks. - Ensured that the fetch operation is only attempted if necessary, and added error handling for cases where commits are still not found after fetching. These changes improve the robustness of commit comparisons in the Git repository management. Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
- Loading branch information