git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
admin/commits: test for popen availability
[minimedit.git]
/
admin
/
commits.php
diff --git
a/admin/commits.php
b/admin/commits.php
index 11aae67c320ac6f2ac082a3a54b64d2761db75d5..2543d79463637ef8a984ffcb721a9b7e67d4c2f8 100644
(file)
--- a/
admin/commits.php
+++ b/
admin/commits.php
@@
-1,4
+1,9
@@
<?php
+if (!function_exists('popen')) {
+ print "<p>Niet beschikbaar op deze server!</p>\n";
+ return;
+}
+
$pagesize = intval(@$_GET['pagesize']) ?: 20;
$gitcmd = "git log -n $pagesize --pretty='%at\t%an\t%s'";