Skip to content

Commit

Permalink
Merge branch 'main' into feat(http)/client_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarisW committed Nov 18, 2024
2 parents e7f134a + 2479fd7 commit 269df72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volo-build/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ pub fn git_repo_init(path: &Path) -> anyhow::Result<()> {
fn in_git_repo(path: &Path) -> bool {
if let Ok(repo) = git2::Repository::discover(path) {
// Don't check if the working directory itself is ignored.
if repo.workdir().map_or(false, |workdir| workdir == path) {
if repo.workdir() == Some(path) {
true
} else {
!repo.is_path_ignored(path).unwrap_or(false)
Expand Down

0 comments on commit 269df72

Please sign in to comment.