summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-04-10 11:38:07 +0200
committerEdward Thomson <ethomson@edwardthomson.com>2015-04-10 11:38:07 +0200
commit623fbd93f1a7538df0c9a433df68f87bbd58b803 (patch)
tree48411be1dd99a979f789107d4de1d0051b93557e /src/tree.c
parent63af449e24125b050dbad3530c3ec64e2e4ee754 (diff)
parentc84a9dd2da864a975b5dee408e3edaf84422b828 (diff)
downloadlibgit2-623fbd93f1a7538df0c9a433df68f87bbd58b803.tar.gz
Merge pull request #2974 from libgit2/cmn/clone-everything
Make sure to pack referenced objects for non-branches
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index 47ed20dbb..bdd17661b 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -858,7 +858,7 @@ int git_tree_entry_bypath(
if (entry == NULL) {
giterr_set(GITERR_TREE,
- "The path '%s' does not exist in the given tree", path);
+ "the path '%.*s' does not exist in the given tree", filename_len, path);
return GIT_ENOTFOUND;
}
@@ -868,7 +868,7 @@ int git_tree_entry_bypath(
* then this entry *must* be a tree */
if (!git_tree_entry__is_tree(entry)) {
giterr_set(GITERR_TREE,
- "The path '%s' does not exist in the given tree", path);
+ "the path '%.*s' exists but is not a tree", filename_len, path);
return GIT_ENOTFOUND;
}