phlegx / redmine_gitlab_hook

This plugin allows you to update your local Git repositories in Redmine when changes have been pushed to GitLab.
MIT License
218 stars 73 forks source link

How to use auto create repository #59

Open ocean73717 opened 10 months ago

ocean73717 commented 10 months ago

I see code def have clone command ,but It seems not when I create new repository used git not auto create new repository As below is /opt/redmine-4.1.0-9/apps/redmine/htdocs/log

Processing by RepositoriesController#show as HTML Parameters: {"id"=>"test08", "repository_id"=>"test08"} Current user: admin (id=1) Rendering common/error.html.erb within layouts/base Rendered common/error.html.erb within layouts/base (0.2ms) Completed 404 Not Found in 102ms (Views: 29.0ms | ActiveRecord: 15.3ms)

As below is /opt/redmine-4.1.0-9/apache2/logs

App 1934 output: "#<Repository::Git id: 19, project_id: 9, url: \"/data/test08.git\", login: \"\", password: \"\", root_url: \"/data/test08.git\", type: \"Repository::Git\", path_encoding: \"UTF-8\", log_encoding: nil, extra_info: {\"extra_report_last_commit\"=>\"1\"}, identifier: \"test08\", is_default: true, created_on: \"2023-11-08 08:03:58\">" App 1934 output: fatal: not a git repository: '/data/test08.git' App 1934 output: fatal: not a git repository: '/data/test08.git' App 1934 output: fatal: not a git repository: '/data/test08.git' App 1934 output: fatal: not a git repository: '/data/test08.git' App 1934 output: fatal: not a git repository: '/data/test08.git'

4 3 2 1