Failed to Import local bare git repo into gogs


#1

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

Getting this error message:

{“message”:“Invalid local path, it does not exist or not a directory”,“url”:“https://github.com/gogits/go-gogs-client/wiki”}

Command:

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/CLI
[root@test-12 CLI]# ls
branches  config  description  HEAD  hooks  info  objects  refs
[root@test-12 CLI]#

#2

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