mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-04 23:05:21 +02:00
eeshow/git-file.c (find_file): use git_repository_workdir, for submodules
This commit is contained in:
parent
ccf77a541d
commit
06a614d2c2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user