1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 01:51:33 +02:00

eeshow/git-file.c (find_file): use git_repository_workdir, for submodules

This commit is contained in:
Werner Almesberger 2016-08-16 03:14:50 -03:00
parent ccf77a541d
commit 06a614d2c2

View File

@ -264,7 +264,8 @@ static git_tree_entry *find_file(git_repository *repo, git_tree *tree,
const char *path) const char *path)
{ {
git_tree_entry *entry; 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; char *slash, *canon_path;
int len; int len;