You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have redmine 1.4.3 and latest redmine_git_hosting plugin. As I create a new project, the respository is created. But when I commit some files to it, redmine keeps on telling that the respository is empty.
Creation of a new project:
Processing ProjectsController#create (for XXX at 2012-10-19 16:11:21) [POST]
Parameters: {"commit"=>"Vytvořit", "action"=>"create", "authenticity_token"=>"XXX", "project"=>{"name"=>"testgitu2", "tracker_ids"=>["1", "2", ""], "homepage"=>"", "parent_id"=>"", "is_public"=>"1", "description"=>"", "identifier"=>"sdfsdfsdfsdf", "enabled_module_names"=>["issue_tracking", "time_tracking", "repository", ""]}, "controller"=>"projects"}
Redirected to https://XXX/projects/sdfsdfsdfsdf/settings
About to create new repo!
Done creating new repo!
Fetching changes from gitolite-admin repository to /tmp/redmine_git_hosting/gitolite/gitolite-admin
Our hook is already installed
Creating new entry 'sdfsdfsdfsdf' in gitolite.conf
Letting gitolite create empty repository: 'repositories/sdfsdfsdfsdf.git'
Committing changes to gitolite-admin repository
Setting up hooks for repository 'sdfsdfsdfsdf' (in gitolite repository at 'repositories/sdfsdfsdfsdf.git')
Completed in 1358ms (DB: 61) | 302 Found [https:/XXX/projects]
Processing ProjectsController#settings (for XXX at 2012-10-19 16:11:23) [GET]
Parameters: {"action"=>"settings", "id"=>"sdfsdfsdfsdf", "controller"=>"projects"}
Fetching changes from gitolite-admin repository to /tmp/redmine_git_hosting/gitolite/gitolite-admin
Our hook is already installed
Rendering template within layouts/base
Rendering projects/settings
Completed in 443ms (View: 84, DB: 9) | 200 OK [https:/XXX/projects/sdfsdfsdfsdf/settings]
Processing RepositoriesController#show (for 109.107.203.194 at 2012-10-19 16:11:36) [GET]
Parameters: {"action"=>"show", "id"=>"sdfsdfsdfsdf", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering repositories/git_instructions
Completed in 239ms (View: 42, DB: 6) | 200 OK [https://XXX/projects/sdfsdfsdfsdf/repository]
Now I have followed instructions to initialize the respository:
ZongoBookPro karl$ mkdir sdfsdfsdfsdf
ZongoBookPro karl$ cd sdfsdfsdfsdf
ZongoBookPro:sdfsdfsdfsdf karl$ git init
Initialized empty Git repository in /Users/karl/Documents/XXX/sdfsdfsdfsdf/.git/
ZongoBookPro:sdfsdfsdfsdf karl$ touch readme.txt
ZongoBookPro:sdfsdfsdfsdf karl$ git add readme.txt
ZongoBookPro:sdfsdfsdfsdf karl$ git commit -m 'Initializing sdfsdfsdfsdf repository'
[master (root-commit) ecf73ac] Initializing sdfsdfsdfsdf repository
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 readme.txt
ZongoBookPro:sdfsdfsdfsdf karl$ git remote add origin gitolite@XXX:sdfsdfsdfsdf.git
ZongoBookPro:sdfsdfsdfsdf karl$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 235 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To gitolite@XXX:sdfsdfsdfsdf.git
[new branch] master -> master
Branch master set up to track remote branch master from origin.
But if I click on respositories, redmine still tells "Repository is empty. Get started by following the instructions below.".
Processing RepositoriesController#show (for XXX at 2012-10-19 16:13:07) [GET]
Parameters: {"action"=>"show", "id"=>"sdfsdfsdfsdf", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering repositories/git_instructions
Completed in 35ms (View: 25, DB: 2) | 200 OK [https://XXX/projects/sdfsdfsdfsdf/repository]
The text was updated successfully, but these errors were encountered:
Can you check whether your http user can access the repository/ directory and the *.git/ subdirectories inside it?
I had a similar behavior and I fixed my issue by setting all the directories a+rx and all the files a+r.
I have redmine 1.4.3 and latest redmine_git_hosting plugin. As I create a new project, the respository is created. But when I commit some files to it, redmine keeps on telling that the respository is empty.
Creation of a new project:
Processing ProjectsController#create (for XXX at 2012-10-19 16:11:21) [POST]
Parameters: {"commit"=>"Vytvořit", "action"=>"create", "authenticity_token"=>"XXX", "project"=>{"name"=>"testgitu2", "tracker_ids"=>["1", "2", ""], "homepage"=>"", "parent_id"=>"", "is_public"=>"1", "description"=>"", "identifier"=>"sdfsdfsdfsdf", "enabled_module_names"=>["issue_tracking", "time_tracking", "repository", ""]}, "controller"=>"projects"}
Redirected to https://XXX/projects/sdfsdfsdfsdf/settings
About to create new repo!
Done creating new repo!
Fetching changes from gitolite-admin repository to /tmp/redmine_git_hosting/gitolite/gitolite-admin
Our hook is already installed
Creating new entry 'sdfsdfsdfsdf' in gitolite.conf
Letting gitolite create empty repository: 'repositories/sdfsdfsdfsdf.git'
Committing changes to gitolite-admin repository
Setting up hooks for repository 'sdfsdfsdfsdf' (in gitolite repository at 'repositories/sdfsdfsdfsdf.git')
Completed in 1358ms (DB: 61) | 302 Found [https:/XXX/projects]
Processing ProjectsController#settings (for XXX at 2012-10-19 16:11:23) [GET]
Parameters: {"action"=>"settings", "id"=>"sdfsdfsdfsdf", "controller"=>"projects"}
Fetching changes from gitolite-admin repository to /tmp/redmine_git_hosting/gitolite/gitolite-admin
Our hook is already installed
Rendering template within layouts/base
Rendering projects/settings
Completed in 443ms (View: 84, DB: 9) | 200 OK [https:/XXX/projects/sdfsdfsdfsdf/settings]
Processing RepositoriesController#show (for 109.107.203.194 at 2012-10-19 16:11:36) [GET]
Parameters: {"action"=>"show", "id"=>"sdfsdfsdfsdf", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering repositories/git_instructions
Completed in 239ms (View: 42, DB: 6) | 200 OK [https://XXX/projects/sdfsdfsdfsdf/repository]
Now I have followed instructions to initialize the respository:
ZongoBookPro karl$ mkdir sdfsdfsdfsdf
ZongoBookPro karl$ cd sdfsdfsdfsdf
ZongoBookPro:sdfsdfsdfsdf karl$ git init
Initialized empty Git repository in /Users/karl/Documents/XXX/sdfsdfsdfsdf/.git/
ZongoBookPro:sdfsdfsdfsdf karl$ touch readme.txt
ZongoBookPro:sdfsdfsdfsdf karl$ git add readme.txt
ZongoBookPro:sdfsdfsdfsdf karl$ git commit -m 'Initializing sdfsdfsdfsdf repository'
[master (root-commit) ecf73ac] Initializing sdfsdfsdfsdf repository
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 readme.txt
ZongoBookPro:sdfsdfsdfsdf karl$ git remote add origin gitolite@XXX:sdfsdfsdfsdf.git
ZongoBookPro:sdfsdfsdfsdf karl$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 235 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To gitolite@XXX:sdfsdfsdfsdf.git
Branch master set up to track remote branch master from origin.
But if I click on respositories, redmine still tells "Repository is empty. Get started by following the instructions below.".
Processing RepositoriesController#show (for XXX at 2012-10-19 16:13:07) [GET]
Parameters: {"action"=>"show", "id"=>"sdfsdfsdfsdf", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering repositories/git_instructions
Completed in 35ms (View: 25, DB: 2) | 200 OK [https://XXX/projects/sdfsdfsdfsdf/repository]
The text was updated successfully, but these errors were encountered: