summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-16 03:14:50 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-16 03:14:50 -0300
commit7c886147694f9184a5453c147d2cb22be57c5b62 (patch)
tree1f9855e18e4b1e8396ddfbbaf4c61b47617d4d39
parent85cb183865ebe58e746758a5c6b0691c0fe7bef8 (diff)
downloadeeshow-7c886147694f9184a5453c147d2cb22be57c5b62.tar.gz
eeshow-7c886147694f9184a5453c147d2cb22be57c5b62.tar.bz2
eeshow-7c886147694f9184a5453c147d2cb22be57c5b62.zip
eeshow/git-file.c (find_file): use git_repository_workdir, for submodules
-rw-r--r--git-file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-file.c b/git-file.c
index 4ddef3d..fe590fb 100644
--- a/git-file.c
+++ b/git-file.c
@@ -264,7 +264,8 @@ static git_tree_entry *find_file(git_repository *repo, git_tree *tree,
const char *path)
{
git_tree_entry *entry;
- char *repo_path = stralloc(git_repository_path(repo));
+ char *repo_path = stralloc(git_repository_workdir(repo));
+ /* use workdir, not path, for submodules */
char *slash, *canon_path;
int len;