get_superproject_working_tree(): return strbuf

Together with the previous commits, this commit fully fixes the problem
of using shared buffer for `real_path()` in `get_superproject_working_tree()`.

Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Alexandr Miloslavskiy
2020-03-10 13:11:24 +00:00
committed by Junio C Hamano
parent 4530a85b4c
commit 49d3c4b481
3 changed files with 14 additions and 14 deletions

View File

@ -152,8 +152,8 @@ void absorb_git_dir_into_superproject(const char *path,
/*
* Return the absolute path of the working tree of the superproject, which this
* project is a submodule of. If this repository is not a submodule of
* another repository, return NULL.
* another repository, return 0.
*/
const char *get_superproject_working_tree(void);
int get_superproject_working_tree(struct strbuf *buf);
#endif