From 06a614d2c2a975385a93f348e95928daf3a05679 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 16 Aug 2016 03:14:50 -0300 Subject: [PATCH] eeshow/git-file.c (find_file): use git_repository_workdir, for submodules --- eeshow/git-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeshow/git-file.c b/eeshow/git-file.c index 4ddef3d..fe590fb 100644 --- a/eeshow/git-file.c +++ b/eeshow/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;