mirror of
https://gitea.com/gitea/gitea-mirror.git
synced 2026-05-04 10:48:30 +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