aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/git.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-01 16:20:03 -0400
committerJoey Hess <joey@kitenet.net>2010-07-01 16:57:20 -0400
commit0eabe6f79498e3339205aeff2c79ae1e85498ab4 (patch)
tree5c404112c98d5ac1afce09db892b509153984839 /IkiWiki/Plugin/git.pm
parent824ad84e2b490e3aa9107e3a3d244bd8e041d918 (diff)
downloadikiwiki-0eabe6f79498e3339205aeff2c79ae1e85498ab4.tar
ikiwiki-0eabe6f79498e3339205aeff2c79ae1e85498ab4.tar.gz
git: Added git_wrapper_background_command option. Can be used to eg, make the git wrapper push to github in the background after ikiwiki runs.
Diffstat (limited to 'IkiWiki/Plugin/git.pm')
-rw-r--r--IkiWiki/Plugin/git.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 992c6226b..0f92476c9 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -41,6 +41,7 @@ sub checkconfig () {
push @{$config{wrappers}}, {
wrapper => $config{git_wrapper},
wrappermode => (defined $config{git_wrappermode} ? $config{git_wrappermode} : "06755"),
+ wrapper_background_command => $config{git_wrapper_background_command},
};
}
@@ -78,6 +79,13 @@ sub getsetup () {
safe => 0, # file
rebuild => 0,
},
+ git_wrapper_background_command => {
+ type => "string",
+ example => "git push github",
+ description => "shell command for git_wrapper to run, in the background",
+ safe => 0, # command
+ rebuild => 0,
+ },
git_wrappermode => {
type => "string",
example => '06755',