]> source.dussan.org Git - gitea.git/commit
Fix repository adoption on Windows (#21646) (#21650)
authorzeripath <art27@cantab.net>
Tue, 1 Nov 2022 22:32:03 +0000 (22:32 +0000)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 22:32:03 +0000 (22:32 +0000)
commit3a0d000b947ff9a1fcdc90698e6d9bb852a67882
treeabc92108e253ea915e5d8bd9273c1b4e15d1191a
parentfd4e7447e7ef80ef397dbf91ae4bf3a3d5c6727f
Fix repository adoption on Windows (#21646) (#21650)

Backport #21646

A bug was introduced in #17865 where filepath.Join is used to join
putative unadopted repository owner and names together. This is
incorrect as these names are then used as repository names - which shoud
have the '/' separator. This means that adoption will not work on
Windows servers.

Fix #21632

Signed-off-by: Andrew Thornton <art27@cantab.net>
services/repository/adopt.go
services/repository/adopt_test.go