Commit 18d3542
committed
Fix "inside work tree" detection on case-insensitive filesystems
Git has a config variable to indicate that it is operating on a file
system that is case-insensitive: core.ignoreCase. But the
`dir_inside_of()` function did not respect that. As a result, if Git's
idea of the current working directory disagreed in its upper/lower case
from the `GIT_WORK_TREE` variable (e.g. `C:\test` vs `c:\test`) the
user would be greeted by the error message
fatal: git-am cannot be used without a working tree.
when trying to run a rebase.
This fixes #402 (reported by
Daniel Harding).
Signed-off-by: Johannes Schindelin <[email protected]>1 parent ec5e5c6 commit 18d3542
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
2033 | 2042 | | |
2034 | 2043 | | |
2035 | 2044 | | |
| |||
2041 | 2050 | | |
2042 | 2051 | | |
2043 | 2052 | | |
2044 | | - | |
| 2053 | + | |
2045 | 2054 | | |
2046 | 2055 | | |
2047 | 2056 | | |
| |||
0 commit comments