mirror of
https://github.com/go-gitea/gitea
synced 2025-07-10 04:27:22 +00:00
Do not allow different storage configurations to point to the same directory (#30169)
Replace #29171
This commit is contained in:
@ -240,7 +240,7 @@ func getStorageForLocal(targetSec, overrideSec ConfigSection, tp targetSecType,
|
||||
}
|
||||
}
|
||||
|
||||
fatalDuplicatedPath("storage."+name, storage.Path)
|
||||
checkOverlappedPath("storage."+name+".PATH", storage.Path)
|
||||
|
||||
return &storage, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user