<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit.git/gen-version.sh, branch main</title>
<subtitle>sl0p fork of cgit — readme-on-summary patch</subtitle>
<id>https://git.sl0p.foo/cgit.git/atom/gen-version.sh?h=main</id>
<link rel='self' href='https://git.sl0p.foo/cgit.git/atom/gen-version.sh?h=main'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/'/>
<updated>2026-07-18T19:31:00Z</updated>
<entry>
<title>build: fix empty version on tagless clones; mark version -sl0p</title>
<updated>2026-07-18T19:31:00Z</updated>
<author>
<name>Jason A. Dönerfield</name>
<email>no-replay@sl0p.foo</email>
</author>
<published>2026-07-18T19:17:58Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=79054faaadd5d6773f79baf4cdca515b0c73944b'/>
<id>urn:sha1:79054faaadd5d6773f79baf4cdca515b0c73944b</id>
<content type='text'>
gen-version.sh unconditionally overwrote the Makefile-provided version
with `git describe` output, which is empty on a plain clone of the fork
(no tags) — so cgit_version rendered blank in the footer and generator
meta. Only override when describe yields something. Also bump the base
version to v1.3.1-sl0p so the version string itself names the fork.
</content>
</entry>
<entry>
<title>gen-version.sh: check if git is available before trying to call it</title>
<updated>2014-02-05T14:09:15Z</updated>
<author>
<name>Fabien C</name>
<email>t74jgwb88tli9ch@jetable.org</email>
</author>
<published>2014-02-01T15:07:46Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=e8cacb5981039e7e74921659ea50e287395ed411'/>
<id>urn:sha1:e8cacb5981039e7e74921659ea50e287395ed411</id>
<content type='text'>
Some people may clone the cgit repository and compile within a sandbox
or on another machine where git is not necessarily installed. When it
happens, cgit is getting compiled with an empty version number.

This commit fixes this.
</content>
</entry>
<entry>
<title>gen-version.sh: don't sed the output from git describe</title>
<updated>2007-10-01T10:09:41Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-10-01T10:01:51Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=97aec64973d572ec98af19383f7fbb8d54bf674e'/>
<id>urn:sha1:97aec64973d572ec98af19383f7fbb8d54bf674e</id>
<content type='text'>
Replacing '-' with '.' makes the version name slightly confusing, so lets
stick with the unmodified output of git describe.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Rewrite the makefile + gen-version.sh</title>
<updated>2007-09-03T20:17:04Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-09-03T19:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=e8920b52629911f92dbbecdb1d7675760e7a781e'/>
<id>urn:sha1:e8920b52629911f92dbbecdb1d7675760e7a781e</id>
<content type='text'>
The old files were simply broken, hopefully the new ones will work out
somewhat better.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add version info from git-describe</title>
<updated>2007-06-18T08:38:40Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-06-18T07:42:10Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/cgit.git/commit/?id=f69250358a74efa5d7d9c562b2cdd80fad1430f1'/>
<id>urn:sha1:f69250358a74efa5d7d9c562b2cdd80fad1430f1</id>
<content type='text'>
A new script, gen-version.sh, is now invoked from 'make version' to generate
the file VERSION. This file contains a version identifier generated by
git-describe and is included in the Makefile.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
</feed>
