Skip to content

Commit 4a9078a

Browse files
committed
Updates the Git submodule path to be relative to the current working directory in the SyncCommand class.
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent d6c231c commit 4a9078a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Command/SyncCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,13 @@ private function addRepositoryWikiGitSubmodule(): void
209209
return;
210210
}
211211

212-
$process = new Process(['git', 'submodule', 'add', $wikiRepoUrl, $wikiSubmodulePath]);
212+
$process = new Process([
213+
'git',
214+
'submodule',
215+
'add',
216+
$wikiRepoUrl,
217+
Path::makeRelative($wikiSubmodulePath, $this->getCurrentWorkingDirectory()),
218+
]);
213219
$process->mustRun();
214220
}
215221

0 commit comments

Comments
 (0)