oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.34k stars 745 forks source link

Wrong git structure in mirror table at OpenGrok homepage #1903

Closed barelnir closed 4 years ago

barelnir commented 6 years ago

Hi,

I am using the projects field to seperate between product versions, under each version I have multiple git repositories which I index.

I put all files at the same level like that /data1/source///*

example: /data1/source/9.0.18.000/server /data1/source/9.0.18.000/client /data1/source/9.0.18.000/web

when users open the OpenGrok homepage the table at the bottom shows that the first git repository is the parent of the others. (screenshot attached)

opengrok

Teriand commented 6 years ago

Have same problem in screenshot below:

git_grok

Red - wrong 1st git Green - all other ok.

barelnir commented 6 years ago

why there are levels? if every git clone is totally different and they just share same project (in my case software version) what levels meant for?

Teriand commented 6 years ago

I have more 1 project:

rootdir / ---------tfs_1 ---------... ----------tfs_x ----------git_folder / ---------------------git_1 ---------------------... ---------------------git_x

for git_folder see as git_1

barelnir commented 6 years ago

Hi,

Do you think it will be solved, do you need more help?

vladak commented 6 years ago

Pull requests are always welcomed :)

Dne 15. 3. 2018 15:40 napsal uživatel "dn2k-dev" notifications@github.com:

Hi,

Do you think it will be solved, do you need more help?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/oracle/opengrok/issues/1903#issuecomment-373399214, or mute the thread https://github.com/notifications/unsubscribe-auth/ACzGDHFFr6eanPeRKp9iAaLo8ioOO02Hks5ten1zgaJpZM4QwnQE .

Teriand commented 6 years ago

I found quick fix for self problem git_folder: repos.jspf:

for (RepositoryInfo ri : repos) { if (cnt > 0 && ri.getParent() == null) // discard repositories without a parent url continue; //if (cnt != 0) { projDesc = ri.getDirectoryName() .replace(cfg.getSourceRootPath() + File.separator, ""); // }

"> All repos in git_folder is subrepository of git_folder and dont need skip 1st subfolder. Other problem i cant fix - how to add git_folder as "repository". "git_folder" is not part "for (Project proj : repositories)" and cant get it..
Teriand commented 5 years ago

i thing its fixed after #2679

tulinkry commented 5 years ago

Yes, it looks like the similar problem.

Teriand commented 5 years ago

test 1.2.2, repo fixed. image

tulinkry commented 5 years ago

Glad to hear that. Close the issue then.