mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-08 09:44:00 +09: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