{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/opengrok/issues/1903","repository_url":"https://api.github.com/repos/oracle/opengrok","labels_url":"https://api.github.com/repos/oracle/opengrok/issues/1903/labels{/name}","comments_url":"https://api.github.com/repos/oracle/opengrok/issues/1903/comments","events_url":"https://api.github.com/repos/oracle/opengrok/issues/1903/events","html_url":"https://github.com/oracle/opengrok/issues/1903","id":278134243,"number":1903,"title":"Wrong git structure in mirror table at OpenGrok homepage","user":{"login":"dn2k-dev","id":5445098,"avatar_url":"https://avatars2.githubusercontent.com/u/5445098?v=4","gravatar_id":"","url":"https://api.github.com/users/dn2k-dev","html_url":"https://github.com/dn2k-dev","followers_url":"https://api.github.com/users/dn2k-dev/followers","following_url":"https://api.github.com/users/dn2k-dev/following{/other_user}","gists_url":"https://api.github.com/users/dn2k-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/dn2k-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dn2k-dev/subscriptions","organizations_url":"https://api.github.com/users/dn2k-dev/orgs","repos_url":"https://api.github.com/users/dn2k-dev/repos","events_url":"https://api.github.com/users/dn2k-dev/events{/privacy}","received_events_url":"https://api.github.com/users/dn2k-dev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-30T14:15:28Z","updated_at":"2018-03-21T09:03:54Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI am using the projects field to seperate between product versions,\r\nunder each version I have multiple git repositories which I index.\r\n\r\nI put all files at the same level like that\r\n/data1/source/<Project>/<git repo>/*\r\n\r\nexample:\r\n/data1/source/9.0.18.000/server\r\n/data1/source/9.0.18.000/client\r\n/data1/source/9.0.18.000/web\r\n\r\nwhen users open the OpenGrok homepage the table at the bottom shows that the first git repository is the parent of the others. (screenshot attached)\r\n\r\n![opengrok](https://user-images.githubusercontent.com/5445098/33434985-a684f54a-d5e9-11e7-9fa5-ef0f2b1ca451.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/oracle/opengrok/issues/comments/374871452","html_url":"https://github.com/oracle/opengrok/issues/1903#issuecomment-374871452","issue_url":"https://api.github.com/repos/oracle/opengrok/issues/1903","id":374871452,"user":{"login":"Teriand","id":26705069,"avatar_url":"https://avatars1.githubusercontent.com/u/26705069?v=4","gravatar_id":"","url":"https://api.github.com/users/Teriand","html_url":"https://github.com/Teriand","followers_url":"https://api.github.com/users/Teriand/followers","following_url":"https://api.github.com/users/Teriand/following{/other_user}","gists_url":"https://api.github.com/users/Teriand/gists{/gist_id}","starred_url":"https://api.github.com/users/Teriand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teriand/subscriptions","organizations_url":"https://api.github.com/users/Teriand/orgs","repos_url":"https://api.github.com/users/Teriand/repos","events_url":"https://api.github.com/users/Teriand/events{/privacy}","received_events_url":"https://api.github.com/users/Teriand/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T09:03:54Z","updated_at":"2018-03-21T09:03:54Z","author_association":"CONTRIBUTOR","body":"I found quick fix for self problem git_folder:\r\n repos.jspf:\r\n\r\n for (RepositoryInfo ri : repos) {\r\n                                if (cnt > 0 && ri.getParent() == null)\r\n                                    // discard repositories without a parent url\r\n                                    continue;\r\n                                //if (cnt != 0) {\r\n                                    projDesc = ri.getDirectoryName()\r\n                                                 .replace(cfg.getSourceRootPath() + File.separator, \"\");\r\n//                                }\r\n   <tr><td class=\"name <%= cnt >= 0 ? \"subrepository\" : \"repository\" %>\">\r\n\r\nAll repos in git_folder is subrepository of git_folder and dont need skip 1st subfolder.\r\nOther problem i cant fix - how to add git_folder as \"repository\".\r\n\"git_folder\" is not part  \"for (Project proj : repositories)\" and cant get it..\r\n\r\n\r\n"}}
{"actor":{"display_login":"Teriand"}}