diff --git a/public/libs/git/sync.js b/public/libs/git/sync.js index 26903e0f..22045d4d 100644 --- a/public/libs/git/sync.js +++ b/public/libs/git/sync.js @@ -432,7 +432,7 @@ async function getRemoteUrl(wikiFolderPath) { } async function clone(githubRepoUrl, repoFolderPath, userInfo) { - const defaultBranchName = await getDefaultBranchName(wikiFolderPath); + const defaultBranchName = await getDefaultBranchName(repoFolderPath); const logProgress = message => logger.notice(message, { handler: 'createWikiProgress', function: 'clone' }); const logInfo = message => logger.info(message, { function: 'clone' }); logProgress(i18n.t('Log.PrepareCloneOnlineWiki'));