I was playing with using git to get my own local copy of lkml and
unless I did something wrong I have found a bug in publc-inbox-init.

Baring some cheats (aka cloning from git.kernel.org) I followed
the directions up on lore.kernel.org, and the archives did not display.

#       git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
#       git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
#       git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
#       git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
#       git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
#       git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
#       git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
#
#       public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml 
[email protected] [email protected]
#
#       public-inbox-index lkml

I was able to solve my issue by applying the following patch to
objects/info/alternatives.

--- all.git/objects/info/alternates-old 2018-07-04 04:18:17.734755092 -0500
+++ all.git/objects/info/alternates     2018-07-04 04:18:11.874754952 -0500
@@ -1 +1,7 @@
+../../git/0.git/objects
+../../git/1.git/objects
+../../git/2.git/objects
+../../git/3.git/objects
+../../git/4.git/objects
+../../git/5.git/objects
 ../../git/6.git/objects

AKA adding the older git directories to all.git.

Is that the correct fix?  Am I write in thinking that public-inbox-init
is failing to do that?  Or am I missing something?

Eric



--
unsubscribe: [email protected]
archive: https://public-inbox.org/meta/

Reply via email to