Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config.c | ||
discover.c | ||
env.c | ||
getters.c | ||
hashfile.c | ||
head.c | ||
headtree.c | ||
init.c | ||
message.c | ||
new.c | ||
open.c | ||
pathspec.c | ||
repo_helpers.c | ||
repo_helpers.h | ||
reservedname.c | ||
setters.c | ||
shallow.c | ||
state.c |
Stop traversing the filesystem at the Windows directory root. We were calculating the filesystem root for the given directory to create, and walking up the filesystem hierarchy. We intended to stop when the traversal path length is equal to the root path length (ie, stopping at the root, since no path may be shorter than the root path). However, on Windows, the root path may be specified in two different ways, as either `Z:` or `Z:\`, where `Z:` is the current drive letter. `git_path_dirname_r` returns the path _without_ a trailing slash, even for the Windows root. As a result, during traversal, we need to test that the traversal path is _less than or equal to_ the root path length to determine if we've hit the root to ensure that we stop when our traversal path is `Z:` and our calculated root path was `Z:\`.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config.c | Loading commit data... | |
discover.c | Loading commit data... | |
env.c | Loading commit data... | |
getters.c | Loading commit data... | |
hashfile.c | Loading commit data... | |
head.c | Loading commit data... | |
headtree.c | Loading commit data... | |
init.c | Loading commit data... | |
message.c | Loading commit data... | |
new.c | Loading commit data... | |
open.c | Loading commit data... | |
pathspec.c | Loading commit data... | |
repo_helpers.c | Loading commit data... | |
repo_helpers.h | Loading commit data... | |
reservedname.c | Loading commit data... | |
setters.c | Loading commit data... | |
shallow.c | Loading commit data... | |
state.c | Loading commit data... |