Skip to content

Commit

Permalink
fix: skip files outside current dir when using --staged
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Apr 5, 2024
1 parent 61e60e0 commit c5c773b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/biome_fs/src/fs/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ impl FileSystem for OsFileSystem {
let output = Command::new("git")
.arg("diff")
.arg("--name-only")
.arg("--relative")
.arg("--staged")
// A: added
// C: copied
Expand Down

0 comments on commit c5c773b

Please sign in to comment.