]> source.dussan.org Git - gitea.git/commit
Fix repository adoption on Windows (#21646) (#21651)
authorzeripath <art27@cantab.net>
Tue, 1 Nov 2022 19:24:37 +0000 (19:24 +0000)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 19:24:37 +0000 (19:24 +0000)
commitd6d62c071f0c6f8799062274c19e87ad2572927d
tree597dc69e1d63ea0d55f1b14481b0805906aaac1c
parent7a2daae7c3a203a3716d653bfcdcdbb2fe48cb2d
Fix repository adoption on Windows (#21646) (#21651)

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