Commit 7c3834d1 by Carlos Martín Nieto

Merge pull request #3010 from ethomson/checkout_invalid_path_err

checkout: report correct invalid path
parents 2a0f67f0 3cda9cf2
...@@ -1197,7 +1197,7 @@ static int checkout_verify_paths( ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment