]> git.plutz.net Git - shellwiki/blobdiff - handlers/60_edit.sh
Merge commit 'f5a7a98f217d9a047cba2c9c92c21baa46d9e0db'
[shellwiki] / handlers / 60_edit.sh
index 6d4e1eac12bd7c1359b7b1a95ad9bd19dcfa11b4..9d1a404a85485db348e1ee405054527655de5c95 100755 (executable)
@@ -43,7 +43,7 @@ elif [ "$edit_action" = update ]; then
     REDIRECT "${_BASE}${PATH_INFO%\[edit\]}/[edit]"
   fi
 
-  if [ "$(which git)" ]; then
+  if [ "$REV_PAGES" = true ]; then
     git -C "$_DATA" add \
       -- "pages/$edit_page/#page.md"
     git -C "$_DATA" commit -qm \