From d4aed0fba81d1d716bfec37bebfe45e6fc013319 Mon Sep 17 00:00:00 2001 From: tiddlygit-test Date: Sun, 18 Oct 2020 20:02:23 +0800 Subject: [PATCH] Update sync.js --- public/libs/git/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));