summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ikiwiki_da_admin.setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki_da_admin.setup b/ikiwiki_da_admin.setup
index ba354c3..2b83361 100644
--- a/ikiwiki_da_admin.setup
+++ b/ikiwiki_da_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';