-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Turborepo): Handle spaces in path names in git status (#7197)
### Description - Don't stop `git status` parsing when encountering a space ### Testing Instructions - Added a unit test for `git status` testing - Added an integration test for a dry run with an added file with a space in the path name Closes TURBO-2209 --------- Co-authored-by: Greg Soltis <Greg Soltis>
- Loading branch information
Greg Soltis
committed
Jan 31, 2024
1 parent
7351651
commit 14f5207
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Setup | ||
$ . ${TESTDIR}/../../../helpers/setup_integration_test.sh | ||
|
||
Force git status to show a file with spaces in the name | ||
$ echo "new file" > packages/util/with\ spaces.txt | ||
|
||
Verify we have a file with spaces in the name | ||
$ git status | grep -q "with spaces" | ||
|
||
Do a dry run to verify we can hash it | ||
$ ${TURBO} run build --dry -F util | grep "Inputs Files Considered" | ||
Inputs Files Considered = 2 |