gitweb: fix regression when filtering out forks

This fixes a condition in filter_forks_from_projects_list that failed if
process directory was different from project root: in such case, the subroutine
was a no-op and forks were not detected.

Signed-off-by: Julien Muchembled <jm@jmuchemb.eu>
Tested-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 file changed
tree: bb87fa27d832b263f1237e717115ce69a407af69
  1. .gitattributes
  2. .gitignore
  3. .mailmap
  4. COPYING
  5. Documentation/
  6. GIT-VERSION-GEN
  7. INSTALL
  8. Makefile
  9. README
  10. abspath.c
  11. aclocal.m4
  12. advice.c
  13. advice.h
  14. alias.c
  15. alloc.c
  16. archive-tar.c
  17. archive-zip.c
  18. archive.c
  19. archive.h
  20. attr.c
  21. attr.h
  22. base85.c
  23. bisect.c
  24. bisect.h
  25. blob.c
  26. blob.h
  27. block-sha1/
  28. branch.c
  29. branch.h
  30. builtin.h
  31. builtin/
  32. bundle.c
  33. bundle.h
  34. cache-tree.c
  35. cache-tree.h
  36. cache.h
  37. check-builtins.sh
  38. check-racy.c
  39. check_bindir
  40. color.c
  41. color.h
  42. combine-diff.c
  43. command-list.txt
  44. commit.c
  45. commit.h
  46. compat/
  47. config.c
  48. config.mak.in
  49. configure.ac
  50. connect.c
  51. contrib/
  52. convert.c
  53. copy.c
  54. csum-file.c
  55. csum-file.h
  56. ctype.c
  57. daemon.c
  58. date.c
  59. decorate.c
  60. decorate.h
  61. delta.h
  62. diff-delta.c
  63. diff-lib.c
  64. diff-no-index.c
  65. diff.c
  66. diff.h
  67. diffcore-break.c
  68. diffcore-delta.c
  69. diffcore-order.c
  70. diffcore-pickaxe.c
  71. diffcore-rename.c
  72. diffcore.h
  73. dir.c
  74. dir.h
  75. editor.c
  76. entry.c
  77. environment.c
  78. exec_cmd.c
  79. exec_cmd.h
  80. fast-import.c
  81. fetch-pack.h
  82. fixup-builtins
  83. fsck.c
  84. fsck.h
  85. generate-cmdlist.sh
  86. gettext.c
  87. gettext.h
  88. git-add--interactive.perl
  89. git-am.sh
  90. git-archimport.perl
  91. git-bisect.sh
  92. git-compat-util.h
  93. git-cvsexportcommit.perl
  94. git-cvsimport.perl
  95. git-cvsserver.perl
  96. git-difftool--helper.sh
  97. git-difftool.perl
  98. git-filter-branch.sh
  99. git-gui/
  100. git-instaweb.sh
  101. git-lost-found.sh
  102. git-merge-octopus.sh
  103. git-merge-one-file.sh
  104. git-merge-resolve.sh
  105. git-mergetool--lib.sh
  106. git-mergetool.sh
  107. git-parse-remote.sh
  108. git-pull.sh
  109. git-quiltimport.sh
  110. git-rebase--am.sh
  111. git-rebase--interactive.sh
  112. git-rebase--merge.sh
  113. git-rebase.sh
  114. git-relink.perl
  115. git-remote-testgit.py
  116. git-repack.sh
  117. git-request-pull.sh
  118. git-send-email.perl
  119. git-sh-setup.sh
  120. git-stash.sh
  121. git-submodule.sh
  122. git-svn.perl
  123. git-web--browse.sh
  124. git.c
  125. git.spec.in
  126. git_remote_helpers/
  127. gitk-git/
  128. gitweb/
  129. graph.c
  130. graph.h
  131. grep.c
  132. grep.h
  133. hash.c
  134. hash.h
  135. help.c
  136. help.h
  137. hex.c
  138. http-backend.c
  139. http-fetch.c
  140. http-push.c
  141. http-walker.c
  142. http.c
  143. http.h
  144. ident.c
  145. imap-send.c
  146. levenshtein.c
  147. levenshtein.h
  148. list-objects.c
  149. list-objects.h
  150. ll-merge.c
  151. ll-merge.h
  152. lockfile.c
  153. log-tree.c
  154. log-tree.h
  155. mailmap.c
  156. mailmap.h
  157. match-trees.c
  158. merge-file.c
  159. merge-file.h
  160. merge-recursive.c
  161. merge-recursive.h
  162. name-hash.c
  163. notes-cache.c
  164. notes-cache.h
  165. notes-merge.c
  166. notes-merge.h
  167. notes.c
  168. notes.h
  169. object.c
  170. object.h
  171. pack-check.c
  172. pack-refs.c
  173. pack-refs.h
  174. pack-revindex.c
  175. pack-revindex.h
  176. pack-write.c
  177. pack.h
  178. pager.c
  179. parse-options.c
  180. parse-options.h
  181. patch-delta.c
  182. patch-ids.c
  183. patch-ids.h
  184. path.c
  185. perl/
  186. pkt-line.c
  187. pkt-line.h
  188. po/
  189. ppc/
  190. preload-index.c
  191. pretty.c
  192. progress.c
  193. progress.h
  194. quote.c
  195. quote.h
  196. reachable.c
  197. reachable.h
  198. read-cache.c
  199. reflog-walk.c
  200. reflog-walk.h
  201. refs.c
  202. refs.h
  203. remote-curl.c
  204. remote.c
  205. remote.h
  206. replace_object.c
  207. rerere.c
  208. rerere.h
  209. resolve-undo.c
  210. resolve-undo.h
  211. revision.c
  212. revision.h
  213. run-command.c
  214. run-command.h
  215. send-pack.h
  216. server-info.c
  217. setup.c
  218. sha1-lookup.c
  219. sha1-lookup.h
  220. sha1_file.c
  221. sha1_name.c
  222. shallow.c
  223. shell.c
  224. shortlog.h
  225. show-index.c
  226. sideband.c
  227. sideband.h
  228. sigchain.c
  229. sigchain.h
  230. strbuf.c
  231. strbuf.h
  232. string-list.c
  233. string-list.h
  234. submodule.c
  235. submodule.h
  236. symlinks.c
  237. t/
  238. tag.c
  239. tag.h
  240. tar.h
  241. templates/
  242. test-chmtime.c
  243. test-ctype.c
  244. test-date.c
  245. test-delta.c
  246. test-dump-cache-tree.c
  247. test-genrandom.c
  248. test-index-version.c
  249. test-line-buffer.c
  250. test-match-trees.c
  251. test-mktemp.c
  252. test-obj-pool.c
  253. test-parse-options.c
  254. test-path-utils.c
  255. test-run-command.c
  256. test-sha1.c
  257. test-sha1.sh
  258. test-sigchain.c
  259. test-string-pool.c
  260. test-subprocess.c
  261. test-svn-fe.c
  262. test-treap.c
  263. thread-utils.c
  264. thread-utils.h
  265. trace.c
  266. transport-helper.c
  267. transport.c
  268. transport.h
  269. tree-diff.c
  270. tree-walk.c
  271. tree-walk.h
  272. tree.c
  273. tree.h
  274. unimplemented.sh
  275. unpack-trees.c
  276. unpack-trees.h
  277. upload-pack.c
  278. url.c
  279. url.h
  280. usage.c
  281. userdiff.c
  282. userdiff.h
  283. utf8.c
  284. utf8.h
  285. vcs-svn/
  286. walker.c
  287. walker.h
  288. wrap-for-bin.sh
  289. wrapper.c
  290. write_or_die.c
  291. ws.c
  292. wt-status.c
  293. wt-status.h
  294. xdiff-interface.c
  295. xdiff-interface.h
  296. xdiff/
  297. zlib.c