Update sync.js

This commit is contained in:
tiddlygit-test 2020-10-18 20:02:23 +08:00
parent f75e2d031b
commit d4aed0fba8

View file

@ -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'));