Closed GoogleCodeExporter closed 9 years ago
Yeah, alright maybe I shouldn't use the GET. This particular form has caused
me some trouble before with Wicket, Tomcat, nested/grouped repositories, and
sessions. I'll take another look at this.
Original comment by James.Mo...@gmail.com
on 26 Oct 2012 at 12:07
Hi Robin,
When you have time, can you pull my latest code and see if this commit
addresses your issue?
https://github.com/gitblit/gitblit/commit/1b84d3110165c0df933a54a03503beaa829034
7d
-J
Original comment by James.Mo...@gmail.com
on 8 Nov 2012 at 9:10
Works very well. Thank you.
Original comment by robin.ro...@gmail.com
on 16 Nov 2012 at 9:09
I replied too quickly. Gitblit now only lists repositories whose name are in
lowercase only, so the number of repos is hugely reduced. E.e. I cannot confirm
the fix.
Original comment by robin.ro...@gmail.com
on 16 Nov 2012 at 10:56
Then I cherry-picked the fix onto v1.1.0 where I can confirm the fix. Thanks.
Original comment by robin.ro...@gmail.com
on 16 Nov 2012 at 11:35
Lowercase repository names.
Do you have repositories that have the same name but differ in case? That will
be a problem.
The repository list cache (concurrent hashmap) now stores names (keys) as
lowercase. I could also maintain a preserved-case list for things like search
box selection - but regardless, the same number of repos should be listed. Is
it really reduced or just not what you expected to see?
Original comment by James.Mo...@gmail.com
on 16 Nov 2012 at 1:05
Yes, there are such repositories, not sure if they make sense. I think someone
just didn't like the name and created a new repo. There are also the exact same
name, but in different directories. That works in 1.1.0, for the cases I know
of.
The issue I was thinking of is that gitblit in master lowercases the directory
names it is looking for so it only finds the names that are in lower case.
This is from the log: (the directoy is named hackerhelg/MOVIE.git )
ERROR Repository "hackerhelg/movie.git" is missing! Removing from cache.
Since you base the repository list on names from a potentially case sensitive
source you need a different solution, i.e. case-insensitive sorting (and
completion?) so the user gets e.g. the lower case entry when typing, but can
see that there is another item to select using keyboard. Typing uppercase could
be interpreted as a request for case matching. This is perhaps s bit OT.
Original comment by robin.ro...@gmail.com
on 16 Nov 2012 at 2:11
I've opened a new issue for reviewing the repository cache strategy for 1.2.0.
(issue 172)
I'm on the fence as to whether to continue supporting repositories with
case-insensitive-identical paths:
e.g.
sample/myrepo.git
sAmPle/MyRepo.git
I can't think of a good reason why you would want to have that aside from "it
could be done".
I am queuing this issue (search form) as prepared for release.
Original comment by James.Mo...@gmail.com
on 27 Nov 2012 at 10:41
Note that the *real* problem is not that there is one repo which comes in two
case flavors, but that none of the repos with uppercase letters show up. If it
was just that one repo I could rename it and forget about it for a while at
least.
Original comment by robin.ro...@gmail.com
on 28 Nov 2012 at 7:26
Ah. That is a good clarification.
Original comment by James.Mo...@gmail.com
on 28 Nov 2012 at 12:40
Hi Robin. I found the case problem with the cache and it is fixed:
https://demo-gitblit.rhcloud.com/commitdiff/gitblit.git/2d85d43d61518d26be33a0e7
759a3d4f4a627452
Original comment by James.Mo...@gmail.com
on 21 Dec 2012 at 10:18
v1.2.0 has been deployed.
Original comment by James.Mo...@gmail.com
on 1 Jan 2013 at 1:06
Original issue reported on code.google.com by
robin.ro...@gmail.com
on 18 Oct 2012 at 10:35