浏览代码

Best attempt when creating a folder marker (fixes #857)

Audrius Butkevicius 11 年之前
父节点
当前提交
6210b9e746
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      internal/config/config.go

+ 3 - 4
internal/config/config.go

@@ -380,10 +380,9 @@ func convertV5V6(cfg *Configuration) {
 	// Doesn't affect the config itself, but uses config migrations to identify
 	// the migration point.
 	for _, folder := range Wrap("", *cfg).Folders() {
-		err := folder.CreateMarker()
-		if err != nil {
-			panic(err)
-		}
+		// Best attempt, if it fails, it fails, the user will have to fix
+		// it up manually, as the repo will not get started.
+		folder.CreateMarker()
 	}
 
 	cfg.Version = 6