Skip to content

Commit b3209bb

Browse files
authored
fix(cli): disable global gitignore during tauri.conf.* lookup (#8688)
* fix: disable global gitignore There are cases when people use git to manage their dotfiles in the home directory. When a tauri projects uses other name than `src-tauri` for the rust source code, the lookup may fail if there's a global gitignore. * change file
1 parent 2631e97 commit b3209bb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.changes/cli-global-gitignore.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:enhance
3+
"@tauri-apps/cli": patch:enhance
4+
---
5+
6+
Ignore global `.gitignore` when searching for tauri directory.

tooling/cli/src/helpers/app_paths.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub fn walk_builder(path: &Path) -> WalkBuilder {
3131

3232
let mut builder = WalkBuilder::new(path);
3333
builder.add_custom_ignore_filename(".taurignore");
34+
builder.git_global(false);
3435
let _ = builder.add_ignore(default_gitignore);
3536
builder
3637
}

0 commit comments

Comments
 (0)