From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D8D77385189B; Mon, 14 Nov 2022 07:52:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8D77385189B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668412371; bh=cWP5y/J7uqx6BbgGf+y4zGMwhWhu9QErDynBIUIZmos=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oQ629ME89WP6HHgdj2xqmweLVZ9SSkd3it034npS1DbFLkUEDACGRxnvJ7FYpGSqm jSM1C+JO4YU5Uesh3usYLn7g9cKfVE4OHiMUpe3fIWkxlO24URzDZHK0eL6Onj0ljr +FnZnQq1a0yCKrglfHeVBwePPlVKUF8Ep2daW8Go= From: "arsen at aarsen dot me" To: overseers@sourceware.org Subject: [Bug Infrastructure/29769] Feature proposal: cgit access rather than solely gitweb Date: Mon, 14 Nov 2022 07:52:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: sourceware X-Bugzilla-Component: Infrastructure X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arsen at aarsen dot me X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: overseers at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29769 --- Comment #4 from Arsen Arsenovi=C4=87 --- (In reply to Mark Wielaard from comment #3) > ScriptAliasMatch \ > "(?x)^/git/(.*/(HEAD | \ > info/refs | \ > objects/(info/[^/]+ | \ > [0-9a-f]{2}/[0-9a-f]{38} | \ > pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ > git-(upload|receive)-pack))$" \ > /usr/libexec/git-core/git-http-backend/$1 Ah, yes, that alias is much more specific than what I thought that git-http-backend needs, so my concerns about it conflicting with cgit are v= oid. The aforementioned Perl script needs some code review (help appreciated!) b= ut covers all gitweb actions AFAICT, and should be easier to extend and less p= rone to error due to unspecified query parameter order. Some actions are simpli= fied or ignore query parameters, or are just unmappable, so instead choose to redirect to the CGit project summary page instead. Code: https://git.sr.ht/~arsen/cgitweb/tree/master/item/cgitweb.perl --=20 You are receiving this mail because: You are the assignee for the bug.=