From: mail at eworm.de (Christian Hesse)
Subject: [PATCH 1/1] print download link for reference string length == 1
Date: Thu, 20 Feb 2014 20:48:45 +0100 [thread overview]
Message-ID: <1392925725-28455-1-git-send-email-mail@eworm.de> (raw)
In-Reply-To: <20140220203359.78dddca0@leda.localdomain>
I have a number of repositories that start tagging with just '1' and
count up. Actually references with sting length of one are skipped, this
patch changes that.
---
ui-refs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-refs.c b/ui-refs.c
index 147b665..e8e308e 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -105,7 +105,7 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref)
const char *basename;
int free_ref = 0;
- if (!ref || strlen(ref) < 2)
+ if (!ref || strlen(ref) < 1)
return;
basename = cgit_repobasename(repo->url);
--
1.9.0
next prev parent reply other threads:[~2014-02-20 19:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-20 19:10 maintenance release coming soon Jason
2014-02-20 19:33 ` list
2014-02-20 19:35 ` Jason
2014-02-20 19:57 ` list
2014-02-20 19:48 ` mail [this message]
2014-02-20 19:58 ` [PATCH 1/1] print download link for reference string length == 1 list
2014-02-20 20:15 ` cgit
2014-02-21 0:41 ` Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392925725-28455-1-git-send-email-mail@eworm.de \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).