genindex.sh: sort the project list
commit2b89f4385c09a6bc2949edd43f7af951166f8028
authorKyle J. McKay <mackyle@gmail.com>
Mon, 2 Mar 2015 04:01:59 +0000 (1 20:01 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 2 Mar 2015 04:01:59 +0000 (1 20:01 -0800)
tree631403c9a255bbc579f98c3ad2b0e75fa9583f50
parentd2f13439a2ea2181c57ff781d1a92a8bf5cc353d
genindex.sh: sort the project list

In order for gitweb.cgi to properly pick up forks when using a
project list file, the forks must come AFTER the forkee.  Currently
this would always be the case since the fork must be created after
the forkee and therefore it would appear later in the group file.

However, if we start reusing unused project numbers (because some
project has been removed) and continue to maintain the group file
in project number order, the fork could appear before the forkee.

Guarantee this doesn't happen in the project list by sorting the
output.  Note that apparently glibc has a bug where sorting the
list with a UTF-8 locale active causes '.' to sort after '/' which
would break forks since we require foo.git to appear in the list
before foo/fork.git.  Fortunately explicitly setting LC_ALL=C
works around this problem.

We are careful to sort the list before applying the '+' -> '%2B'
transformation.
gitweb/genindex.sh