List for cgit developers and users
 help / color / mirror / Atom feed
* [Bug?] remove-suffix config position dependent
@ 2021-01-13 22:24 Leroy van Logchem
  2021-01-13 22:31 ` Kian Kasad
  0 siblings, 1 reply; 2+ messages in thread
From: Leroy van Logchem @ 2021-01-13 22:24 UTC (permalink / raw)
  To: cgit

Setup
=====
CGit v1.2.3 | https://git.zx2c4.com/cgit/

Compiled in features:
[+] Lua scripting
[+] Linux sendfile() usage

Issue
====

remove-suffix=1 only works when defined _before_ the scan-path config item.

Is this expected behavior?

--
Leroy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bug?] remove-suffix config position dependent
  2021-01-13 22:24 [Bug?] remove-suffix config position dependent Leroy van Logchem
@ 2021-01-13 22:31 ` Kian Kasad
  0 siblings, 0 replies; 2+ messages in thread
From: Kian Kasad @ 2021-01-13 22:31 UTC (permalink / raw)
  To: Leroy van Logchem; +Cc: cgit

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

On 21/01/13 11:24PM, Leroy van Logchem wrote:
> Setup
> =====
> CGit v1.2.3 | https://git.zx2c4.com/cgit/
> 
> Compiled in features:
> [+] Lua scripting
> [+] Linux sendfile() usage
> 
> Issue
> ====
> 
> remove-suffix=1 only works when defined _before_ the scan-path config item.
> 
> Is this expected behavior?

Yes. It's listed in the documentation:
    remove-suffix::
        If set to "1" and scan-path is enabled, if any repositories are found
        with a suffix of ".git", this suffix will be removed for the url and
        name. *This must be defined prior to scan-path*. Default value: "0".
        See also: scan-path.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-13 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 22:24 [Bug?] remove-suffix config position dependent Leroy van Logchem
2021-01-13 22:31 ` Kian Kasad

List for cgit developers and users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/cgit

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 cgit cgit/ http://inbox.vuxu.org/cgit \
		cgit@lists.zx2c4.com
	public-inbox-index cgit

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.cgit


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git