From 789de49f91fda5a20e6fd5ddd348235b3d62f609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Wed, 26 Sep 2018 20:44:03 +0000 Subject: [PATCH] Resolve gitdir path relative to project file --- src/plugins/git/ide-git-vcs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/git/ide-git-vcs.c b/src/plugins/git/ide-git-vcs.c index 33f539290..bd528c8b1 100644 --- a/src/plugins/git/ide-git-vcs.c +++ b/src/plugins/git/ide-git-vcs.c @@ -281,7 +281,9 @@ ide_git_vcs_load (IdeGitVcs *self, const gchar *branch; g_clear_object (&location); - location = g_file_new_for_path (line + strlen ("gitdir: ")); + location = g_file_resolve_relative_path ( + g_file_get_parent (project_file), + line + strlen ("gitdir: ")); /* * Worktrees only have a single branch, and it is the name -- GitLab