From cde8e22bc3d948a2a60de0e971e686a145ea6ae1 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 15 Nov 2018 00:41:09 +0100 Subject: [PATCH] Update runHooks.php --- build/git-hooks/runHooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/git-hooks/runHooks.php b/build/git-hooks/runHooks.php index 73e759a5b..c89120266 100755 --- a/build/git-hooks/runHooks.php +++ b/build/git-hooks/runHooks.php @@ -40,19 +40,19 @@ $error = false; */ if ($error === false) { $git = new Git(); - $branch = $git->active_branch(); + $branch = $git->getCurrentBranchName(); if (in_array($branch, $git->mainBranches(), false)) { // Only update versions, etc. on specific branches to lessen conflicts if ($error === false) { try { $vers = new Versions(); - $vers->checkGitTag(true); + $vers->checkGitTag(); $vers->checkSQLFileLatest(false); $vers->checkSQLDb(false); $vers->save(); - $git->add(NN_VERSIONS); + $git->addFile(NN_VERSIONS); } catch (\Exception $e) { $error = 1; echo "Error while checking versions!\n";