mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 20:45:55 +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)
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user