summaryrefslogtreecommitdiff
path: root/tests-clar/diff/tree.c
diff options
context:
space:
mode:
authorSascha Cunz <Sascha@BabbelBox.org>2012-10-05 13:44:18 +0200
committerSascha Cunz <Sascha@BabbelBox.org>2012-10-05 13:53:53 +0200
commit1dca8510a2e815c95293c1ebaacf2a286a9c6e1d (patch)
treec8aa8d8e764b71a0a32ea89e56756702e8692955 /tests-clar/diff/tree.c
parent1686641f18f028940b760ef554e9219c2c9a27d8 (diff)
downloadlibgit2-1dca8510a2e815c95293c1ebaacf2a286a9c6e1d.tar.gz
Diff: Do not try to calculate an oid for a GITLINK.
We don't have anything useful that we could do with that oid anyway (We need to query the submodule for the HEAD commit instead). Without this, the following code creates the error "Failed to read descriptor: Is a directory" when run against the submod2 test-case: const char* oidstr = "873585b94bdeabccea991ea5e3ec1a277895b698"; git_tree* tree = resolve_commit_oid_to_tree(g_repo, oidstr); git_diff_list* diff = NULL; cl_assert(tree); cl_git_pass(git_diff_workdir_to_tree(g_repo, NULL, tree, &diff));
Diffstat (limited to 'tests-clar/diff/tree.c')
0 files changed, 0 insertions, 0 deletions