From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28816 invoked from network); 25 Mar 2022 21:45:43 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 25 Mar 2022 21:45:43 -0000 Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id ded8371a; Fri, 25 Mar 2022 21:45:32 +0000 (UTC) Return-Path: Received: from mail.thenautilus.net (mail.thenautilus.net [5.79.87.27]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id a8e93031 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Fri, 25 Mar 2022 21:45:30 +0000 (UTC) Received: (qmail 23237 invoked from network); 25 Mar 2022 21:45:19 -0000 Received: from unknown (HELO localhost) (dakkar@::ffff:10.111.0.42) by 0 with ESMTPA; 25 Mar 2022 21:45:19 -0000 Date: Fri, 25 Mar 2022 21:44:48 +0000 From: Gianni Ceccarelli To: cgit@lists.zx2c4.com Subject: Re: Weird interactions betwen cache and module-link Message-ID: <20220325214448.244a6590@thenautilus.net> In-Reply-To: <20220325210816.6f89abb3@thenautilus.net> References: <20220325210816.6f89abb3@thenautilus.net> X-Mailer: Claws Mail 4.0.0git409 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" This patch seems to fix the problem. diff --git c/cgit.c w/cgit.c index 08d81a1..d30e259 100644 --- c/cgit.c +++ w/cgit.c @@ -810,6 +810,10 @@ static void print_repo(FILE *f, struct cgit_repo *repo) fprintf(f, "repo.extra-head-content=%s\n", repo->extra_head_content); if (repo->module_link) fprintf(f, "repo.module-link=%s\n", repo->module_link); + for (int i = 0; i < repo->submodules.nr; ++i) { + struct string_list_item *si=&repo->submodules.items[i]; + fprintf(f, "repo.module-link.%s=%s\n", si->string, (char*)si->util); + } if (repo->section) fprintf(f, "repo.section=%s\n", repo->section); if (repo->homepage) -- Dakkar - GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id = 0x75193F88