Commit graph

6 commits

Author SHA1 Message Date
Hiltjo Posthuma
587b01428d fix issues in example scripts
- in case cd fails don't continue (don't write in previous directory).
- post-receive: quote $(pwd) in case it has spaces.

found by shellcheck tool.
2019-03-01 11:49:29 +01:00
Hiltjo Posthuma
020673b8fd post-receive: fix warning in script for example when pushing deleted tags
the "new" variable would be zero:
	remote: fatal: bad object 0000000000000000000000000000000000000000

NOTE: when pushing new tags the "old" variable would be zero, this was
      already fixed.
2017-11-25 16:02:24 +01:00
Hiltjo Posthuma
cfbf4a11ad post-receive hook: force UTF-8 locale
this fixes encoding errors when the pages are generated in the
post-receive hook.
2017-10-31 23:20:18 +01:00
Hiltjo Posthuma
8787f495e0 ignore object 0000000000000000000000000000000000000000
remote: fatal: bad object 0000000000000000000000000000000000000000

this can happen on initial repos or when pushing tags etc.
2017-08-09 18:52:53 +02:00
Hiltjo Posthuma
bdcf38baa4 improve example scripts, add to build (Makefile) 2017-07-30 17:21:42 +02:00
Hiltjo Posthuma
4e307d3076 improve example, add initial post-receive example 2017-07-15 13:50:24 +02:00