Moving docker $repo_branch var to config.php

This commit is contained in:
Xander Luedtke
2023-01-09 09:24:28 -07:00
parent fd30cc50e9
commit cb3195a90a
2 changed files with 3 additions and 2 deletions

View File

@@ -1,12 +1,12 @@
<?php
include("inc_all_settings.php");
include("database_version.php");
include("config.php")
?>
<?php
//fetch the latest code changes but don't apply them\
$repo_branch = 'master';
//fetch the latest code changes but don't apply them
exec("git fetch", $output, $result);
$latest_version = exec("git rev-parse origin/$repo_branch");
$current_version = exec("git rev-parse HEAD");