summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ikiwiki_admin.setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki_admin.setup b/ikiwiki_admin.setup
index b7e67c8..2f5f357 100644
--- a/ikiwiki_admin.setup
+++ b/ikiwiki_admin.setup
@@ -9,7 +9,7 @@
our ($basedir, $builddir, $domain, $gitrepo);
BEGIN {
# git hook requires full path as basedir: $ENV{'HOME'} . '/mywiki'
- $basedir = $ENV{'PWD'};
+ $basedir = $ENV{'SRCDIR'} || $ENV{'PWD'};
$builddir = $ENV{'BUILDDIR'} || $basedir . '/build';
$domain = 'example.org';
$gitrepo = 'wiki';