Commit ac7c0a3
committed
t0050: use explicit branch name and verify checkout result
The test 'checkout with no pathspec and a case insensitive fs'
relies on the script-wide GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
to set the initial branch to 'main'. Use 'git init -b main'
instead, so that the test is self-contained and does not depend
on the blanket setting for the entire script.
While at it, add a test_path_is_file check after the checkout
to verify that the expected file is present in the worktree.
Signed-off-by: Md Ferdous Alam <mdferdousalam1989@yahoo.com>1 parent 7c02d39 commit ac7c0a3
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments