]> git.cameronkatri.com Git - cgit.git/commit
Allow relative paths for cgit_cache_root
authorLars Hjemli <hjemli@gmail.com>
Sat, 16 Dec 2006 12:55:58 +0000 (13:55 +0100)
committerLars Hjemli <hjemli@gmail.com>
Sat, 16 Dec 2006 12:55:58 +0000 (13:55 +0100)
commit7c849d94ec1cfecdec5a88d49f5af5c98f96ebca
tree294acaa3368cba880dcc74aac8fb95e22156be21
parent61245ad18545ab09b22e9fcce5e49d5d36bf8176
Allow relative paths for cgit_cache_root

Make sure we chdir(2) back to the original getcwd(2) when a page
has been generated. Also, if the cgit_cache_root do not exist,
try to create it.

This is a feature intended to ease testing/debugging.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cache.c
cgit.c