Closed gitblit closed 9 years ago
Reported by James.Moger
on 2012-01-30 14:28:45
Accepted
1- In which directory have the gitblt?
2- With what command you call it?
Seems as if it created the folders to another directory that is not the source. Linux
distribution, there are a lot of, what is yours?
Thks
Reported by eguervos
on 2012-01-30 20:32:43
Before answering your questions, I like to post the solution to this problem.
In file:
https://github.com/gitblit/gitblit/blob/master/src/com/gitblit/utils/JGitUtils.java
Method:
List<String> getRepositoryList(String basePath, File searchFolder, boolean exportAll,
boolean searchSubfolders)
On line:
} else if (searchSubfolders) { --- 330 in github, 343 in google code, or the direct
link: http://code.google.com/p/gitblit/source/browse/src/com/gitblit/utils/JGitUtils.java#343
change this line to:
} else if (searchSubfolders && file.canRead()) {
This skips all directories which cannot be read. No sense in going deeper either.
----------
That said, the answer to your questions:
1. Linux version 2.6.32.24-0.2-default (geeko@buildhost) (gcc versio
n 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) x86_64 x86_64 x86_64 GNU/Linux
2. The error occurs on startup of gitlib when accessing the main page via https. No
repositories are shown.
I'm currently running a fixed version which seems to work fine.
Regards & thanks,
Michael
Reported by lemval
on 2012-01-31 06:36:11
Hi Michael,
I understood your issue. I can merge your change in GitHub if you open a pull request.
If you'd rather not go through the bother, that is ok too.
-James
Reported by James.Moger
on 2012-01-31 12:51:38
Quite easy as it seemed to aid you in a pull request. Here you are ;)
Reported by lemval
on 2012-01-31 14:29:26
Perfect! Thanks for the patch.
Reported by James.Moger
on 2012-01-31 15:01:02
Verified
Originally reported on Google Code with ID 51
Reported by
lemval
on 2012-01-30 14:09:51