Merge pull request #859 from AudriusButkevicius/markerfix
Best attempt when creating a folder marker (fixes #857)
This commit is contained in:
commit
d7a0691c99
|
@ -380,10 +380,9 @@ func convertV5V6(cfg *Configuration) {
|
||||||
// Doesn't affect the config itself, but uses config migrations to identify
|
// Doesn't affect the config itself, but uses config migrations to identify
|
||||||
// the migration point.
|
// the migration point.
|
||||||
for _, folder := range Wrap("", *cfg).Folders() {
|
for _, folder := range Wrap("", *cfg).Folders() {
|
||||||
err := folder.CreateMarker()
|
// Best attempt, if it fails, it fails, the user will have to fix
|
||||||
if err != nil {
|
// it up manually, as the repo will not get started.
|
||||||
panic(err)
|
folder.CreateMarker()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.Version = 6
|
cfg.Version = 6
|
||||||
|
|
Loading…
Reference in New Issue