The trick here is that the hash containing configuration settings is
being passed to a perl module's import method with a use statement.
That use statement includes an implicit BEGIN statement which makes
the import function get called at compile-time. So our settings for
gitrepo and checkout don't take effect unless we also put them in
their own BEGIN block.
# Also, see the destdir and url parameters below which must also be
# configured before things will work at all.
-my gitrepo = '/path/to/bare/git/repo';
-my checkout = "$gitrepo/ikiwiki-checkout";
+our ($gitrepo, $checkout);
+
+BEGIN {
+ $gitrepo = '/path/to/bare/git/repo';
+ $checkout = "$gitrepo/ikiwiki-checkout";
+}
use IkiWiki::Setup::Standard {