mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 01:59:05 +08:00
♻️ Rename func
This commit is contained in:
parent
b5b05cef49
commit
5a1a632912
@ -1560,7 +1560,7 @@ func newRepository() (ret *dejavu.Repo, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
ignoreLines := getIgnoreLines()
|
||||
ignoreLines := getSyncIgnoreLines()
|
||||
ignoreLines = append(ignoreLines, "/.siyuan/conf.json") // 忽略旧版同步配置
|
||||
ret, err = dejavu.NewRepo(util.DataDir, util.RepoDir, util.HistoryDir, util.TempDir, Conf.System.ID, Conf.System.Name, Conf.System.OS, Conf.Repo.Key, ignoreLines, cloudRepo)
|
||||
if nil != err {
|
||||
|
@ -577,7 +577,7 @@ func formatRepoErrorMsg(err error) string {
|
||||
return msg
|
||||
}
|
||||
|
||||
func getIgnoreLines() (ret []string) {
|
||||
func getSyncIgnoreLines() (ret []string) {
|
||||
ignore := filepath.Join(util.DataDir, ".siyuan", "syncignore")
|
||||
err := os.MkdirAll(filepath.Dir(ignore), 0755)
|
||||
if nil != err {
|
||||
|
Loading…
Reference in New Issue
Block a user