Christian Hesse
76dc7a3371
cache: fix resource leak: close file handle before return
...
Coverity-id: 13910
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-10 21:41:04 +02:00
Christian Hesse
ed5dccbeaa
ui-atom: fix resource leak: free allocation from cgit_pageurl
...
Coverity-id: 13945
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-10 21:40:26 +02:00
Christian Hesse
144e3c6085
ui-atom: fix resource leak: free before return
...
Coverity-id: 13946
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-10 21:40:05 +02:00
Christian Hesse
97da17b783
ui-atom: fix resource leak: free allocation from cgit_repourl
...
Coverity-id: 13947
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-10 21:39:53 +02:00
Christian Hesse
7320bfa893
ui-blob: fix resource leak: free before return
...
Coverity-id: 13944
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-10 21:39:25 +02:00
Christian Hesse
30802126d4
ui-blob: fix resource leak: free before return
...
Coverity-id: 13943
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-10 21:38:57 +02:00
Christian Hesse
08a2b818f2
ui-plain: fix resource leak: free before assigning NULL
...
Coverity-id: 13939
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 15:50:34 +02:00
Christian Hesse
979db79a80
ui-plain: fix resource leak: free before return
...
Coverity-id: 13940
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 15:50:09 +02:00
Christian Hesse
51338f7658
ui-repolist: fix resource leak: free allocation from cgit_currenturl
...
Coverity-id: 13930
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 15:49:57 +02:00
Christian Hesse
7ef1a47991
ui-repolist: fix resource leak: free before return
...
Coverity-id: 13931
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 15:49:39 +02:00
Christian Hesse
6edfc1672c
ui-shared: fix resource leak: free allocation from cgit_hosturl
...
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 14:04:42 +02:00
Christian Hesse
f77e2a8cfa
ui-shared: return value of cgit_hosturl is not const
...
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 14:04:27 +02:00
Christian Hesse
6f2e4400fa
cmd: fix resource leak: free allocation from cgit_currenturl and fmtalloc
...
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 14:03:58 +02:00
Christian Hesse
3e244a0cca
ui-shared: fix resource leak: free allocation from cgit_currenturl
...
Coverity-id: 13927
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 14:02:41 +02:00
Christian Hesse
c5c0eb873e
ui-shared: return value of cgit_currenturl is not const
...
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 14:00:56 +02:00
Christian Hesse
37fce9916a
ui-shared: fix resource leak: free allocation from cgit_fileurl
...
Coverity-id: 13918
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 13:59:46 +02:00
Christian Hesse
fa5810ed8e
ui-ssdiff: fix resource leak: free allocation from cgit_fileurl
...
Coverity-id: 13929
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 13:59:24 +02:00
Christian Hesse
896cd69dde
ui-tree: fix resource leak: free before return
...
Coverity-id: 13938
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-09 13:58:25 +02:00
Christian Hesse
978ce8c00c
git: update to v2.6.1
...
Update to git version v2.6.1, no changes required.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-10-06 16:39:06 +02:00
Christian Hesse
790d2498cb
ui-summary: send images plain for about page
...
The about page used to display just fine, but images were broken: The
binary image data was embedded in html code.
Use cgit_print_plain() to send images in plain mode and make them
available on about page.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-08-17 14:42:58 +02:00
Christian Hesse
aa943bc9a6
refactor get_mimetype_from_file() to get_mimetype_for_filename()
...
* handle mimetype within a single function
* return allocated memory on success
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-08-17 14:25:08 +02:00
Christian Hesse
f5c83d7b5d
move get_mimetype_from_file() to shared
...
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-08-17 14:25:08 +02:00
Christian Hesse
aa12084f98
ui-patch: make sure to send http headers
...
Requesting a text/plain patch with bad commit id made cgit send text
without proper http headers. This results in "500 Internal Server Error"
with "Premature end of script headers" in server logs.
So print http headers before error message and return.
Signed-off-by: Christian Hesse <mail@eworm.de >
Reviewed-by: John Keeping <john@keeping.me.uk >
2015-08-14 12:35:25 +02:00
Christian Hesse
de83de276b
git: update to v2.5.0
...
Update to git version v2.5.0.
* Upstream commit 5455ee0573a22bb793a7083d593ae1ace909cd4c (Merge branch
'bc/object-id') changed API:
for_each_ref() callback functions were taught to name the objects
not with "unsigned char sha1[20]" but with "struct object_id".
* Upstream commit dcf692625ac569fefbe52269061230f4fde10e47 (path.c: make
get_pathname() call sites return const char *)
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-08-12 14:09:05 +02:00
Christian Hesse
2eb41c4665
git: update to v2.4.1
...
Update to git version v2.4.1, no changes required.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-05-14 13:49:12 +02:00
Christian Hesse
d1ddce90f5
ui-shared: allow remote refs in branch switcher
...
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-03-18 18:23:46 +01:00
Christian Hesse
84627609f5
git: update to v2.3.3
...
Update to git version v2.3.3, no changes required.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-03-14 17:56:15 +01:00
Christian Hesse
97a91657a5
git: update to v2.3.2
...
Update to git version v2.3.2, no changes required.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-03-07 12:45:58 +01:00
Christian Hesse
911d574250
git: update to v2.3.1
...
Update to git version v2.3.1, no changes required.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-03-03 16:47:22 +01:00
Christian Hesse
36b1d78923
shrink cgit.png file size
...
Ran optipng against cgit.png, which shrank file size by more than eight
percent. The image (including protocol overhead) should fit into a
single network packet now.
Optipng optimizes filters and compression. The actual pixel results are
not altered.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-02-15 22:06:24 +01:00
Christian Hesse
7358f63015
git: update for v2.3.0
...
* sort_string_list(): rename to string_list_sort() (upstream commit
3383e199)
* update read_tree_recursive callback to pass strbuf as base (upstream
commit 6a0b0b6d)
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-02-08 18:11:09 +01:00
Christian Hesse
c641e0ab64
git: update to v2.2.2
...
Update to git version v2.2.2, no changes required.
Signed-off-by: Christian Hesse <mail@eworm.de >
2015-01-13 14:54:22 +01:00
Christian Hesse
a87c9d8a97
git: use xz compressed archive for download
2014-12-23 19:14:07 -07:00
Christian Hesse
17838ec630
git: update to v2.2.1
...
Update to git version v2.2.1, including API changes.
Signed-off-by: Christian Hesse <mail@eworm.de >
2014-12-23 18:53:03 -07:00
Christian Hesse
10c5680efb
filter: fix libravatar email-filter https issue
...
Serving cgit via https and getting avatar via http gives error messages
about untrusted content. This decides whether or not to use https link
by looking at the environment variable HTTPS, which is set in CGI.
2014-12-13 12:38:42 +01:00
Christian Hesse
4b91269bdb
remove debug fprinf() calls that sneaked in with commit 79c985
2014-06-29 20:18:42 +02:00
Christian Hesse
390ffad022
git: update to 2.0.1
...
Everything works just bumping the version in Makefile and commit hash in
submodule. No code changes required.
2014-06-28 16:07:30 +02:00
Christian Hesse
79c985e13c
git: update for git 2.0
...
prefixcmp() and suffixcmp() have been remove, functionality is now
provided by starts_with() and ends_with(). Retrurn values have been
changed, so instead of just renaming we have to fix logic.
Everything else looks just fine.
2014-06-28 15:14:56 +02:00
Christian Hesse
b431282c91
remove trailing whitespaces from source files
2014-04-17 12:55:09 +02:00
Christian Hesse
dcb16f0d11
git: update to 1.9.2
...
Everything works just bumping the version in Makefile and commit hash in
submodule. No code changes required.
2014-04-12 18:05:43 +02:00
Christian Hesse
45315f846c
git: update to 1.9.1
...
Everything works just bumping the version in Makefile and commit hash
in submodule. No code changes required.
2014-03-20 11:14:03 -06:00
Christian Hesse
e22e985416
filter: add libravatar email-filter lua script
2014-03-13 04:57:01 -06:00
Christian Hesse
e6749644bc
print download link for reference string length == 1
...
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.
2014-02-21 01:41:23 +01:00
Christian Hesse
8ae1d8b8fd
email-gravatar: fix html syntax issues
...
an attribute value specification must be an attribute value literal
unless SHORTTAG YES is specified
2014-01-15 14:43:02 +01:00
Christian Hesse
1167dbb95b
email-gravatar: fix html syntax issues
...
* make ampersand a html entity
* add required alt attribute
* add required img end tag
2014-01-14 13:55:44 +01:00
Christian Hesse
46176eca7f
email-gravatar.py: fix UTF-8
2014-01-14 13:55:35 +01:00
Christian Hesse
50287e7912
email-gravatar.lua: fix for lua 5.2
2014-01-14 13:55:25 +01:00
Christian Hesse
3cebf6838b
git: update to 1.8.5
...
Everything works just bumping the version in Makefile and commit hash
in submodule. No code changes required.
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de >
2014-01-08 14:59:38 +01:00
Christian Hesse
820df9c660
add a note about generating agefile in hook
2013-08-12 13:14:10 -06:00
Christian Hesse
830eb6f6ff
use favicon by default
2013-08-12 12:44:44 -06:00
Christian Hesse
52c926cadb
Add favicon
...
This adds a favicon to cgit. It is not enabled by default, though.
The file contains two icons, 16x16 and 32x32 pixels, optimized for size.
2013-05-31 02:52:24 +02:00