diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-02-08 11:41:10 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-08 12:05:47 +0100 |
commit | 9e8d75c7d447531d81133bf880c1a5f45a45c340 (patch) | |
tree | c36c9bf21e0e3f641803a72e3e6c11686b3b2ea5 /src/commit.c | |
parent | 5d59520ccd4816080e68b5a3057653c15f3d6816 (diff) | |
download | libgit2-9e8d75c7d447531d81133bf880c1a5f45a45c340.tar.gz |
path: ensure dirname on Win32 prefix always has a trailing '/'
When calling `git_path_dirname_r` on a Win32 prefix, e.g. a drive
or network share prefix, we always want to return the trailing
'/'. This does not work currently when passing in a path like
'C:', where the '/' would not be appended correctly.
Fix this by appending a '/' if we try to normalize a Win32 prefix
and there is no trailing '/'.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions