diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-03-23 11:30:30 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-03-23 11:30:30 -0400 |
commit | 3cda9cf2472f24da75dec2fe64664562193c6fce (patch) | |
tree | 2a95b5eac890d97b62ec0036147d90a06c27e0e3 | |
parent | cfcb346d94fa60bc99d22cba7910510db869ae9a (diff) | |
download | libgit2-3cda9cf2472f24da75dec2fe64664562193c6fce.tar.gz |
checkout: report correct invalid path
-rw-r--r-- | src/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checkout.c b/src/checkout.c index f71be26f9..6641cf70a 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -1197,7 +1197,7 @@ static int checkout_verify_paths( if (action & ~CHECKOUT_ACTION__REMOVE) { 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; } } |