mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 23:19:28 +00:00
checkout: report correct invalid path
This commit is contained in:
parent
cfcb346d94
commit
3cda9cf247
@ -1197,7 +1197,7 @@ static int checkout_verify_paths(
|
|||||||
|
|
||||||
if (action & ~CHECKOUT_ACTION__REMOVE) {
|
if (action & ~CHECKOUT_ACTION__REMOVE) {
|
||||||
if (!git_path_isvalid(repo, delta->new_file.path, flags)) {
|
if (!git_path_isvalid(repo, delta->new_file.path, flags)) {
|
||||||
giterr_set(GITERR_CHECKOUT, "Cannot checkout to invalid path '%s'", delta->old_file.path);
|
giterr_set(GITERR_CHECKOUT, "Cannot checkout to invalid path '%s'", delta->new_file.path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user