Files
html/api/ambre-v139-git.php
2026-04-22 00:40:02 +02:00

18 lines
519 B
PHP

<?php
header("Content-Type: text/plain");
$out = @shell_exec("cd /var/www/html && git log --oneline -5 2>&1");
echo "=== git log -5 ===
" . ($out ?: "(empty)") . "
";
$status = @shell_exec("cd /var/www/html && git status --short 2>&1 | head -20");
echo "
=== git status ===
" . ($status ?: "(clean)") . "
";
// Tag wave-228
$tag = @shell_exec("cd /var/www/html && git tag wave-228-premium-tools 2>&1 && git push origin wave-228-premium-tools 2>&1 | tail -3");
echo "
=== tag push ===
" . ($tag ?: "(no output)") . "
";