You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iter_load_loose_paths() appends a '/' on backend->commonpath in all cases. setup_namespace() generates a commonpath without trailing '/' only if repo->namespace is set.
Reproduction steps
Print paths from p_open/p_creat/p_stat/p_lstat or apply the following diff:
iter_load_loose_paths()
appends a '/' onbackend->commonpath
in all cases.setup_namespace()
generates acommonpath
without trailing '/' only ifrepo->namespace
is set.Reproduction steps
Print paths from p_open/p_creat/p_stat/p_lstat or apply the following diff:
Run
git_reference_foreach()
in a repository without namespaces (Orbuild/examples/lg2 for-each-ref
)Expected behavior
No paths with empty segments should be printed
Actual behavior
Paths with empty segments are printed
Version of libgit2 (release number or SHA1)
0d0150d
Operating system(s) tested
Linux Mint
The text was updated successfully, but these errors were encountered: