Failed to Import local bare git repo into gogs


I’m unable to import local bare git repo into gogs. But can import repos.

Getting this error message:

{“message”:“Invalid local path, it does not exist or not a directory”,“url”:“”}


curl -u xxxx --request POST --url http://localhost:6000/api/v1/repos/migrate --header 'content-type: application/json' --data '{"clone_addr": "/root/Test/CLI/","uid": 6,"repo_name": "CLI"}'

local Bare Git Folder:

[root@test-12 CLI]# pwd
[root@test-12 CLI]# ls
branches  config  description  HEAD  hooks  info  objects  refs
[root@test-12 CLI]#


I think the error is very clear already, no?..