diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php
index 9302e88fd39277ae5ef36697fcde4bcc332a5bc9..074576cd7b2ce5b6a6bc090bb98f087b359da31d 100644
--- a/public_html/deployment/classes/vcs.git.class.php
+++ b/public_html/deployment/classes/vcs.git.class.php
@@ -404,16 +404,19 @@ class vcs implements iVcs
     /**
      * Get current revision and commit message from remote repository
      * @see $this::getRevision
-     * It returns false if no branch is set
+     * It returns a key "error" if no branch is set
      * 
      * @param boolean  $bRefresh  optional: refresh data; default: use cache
-     * @return bool|array
+     * @return array
      */
-    public function getRepoRevision(bool $bRefresh = false): bool|array
+    public function getRepoRevision(bool $bRefresh = false): array
     {
         $this->log(__FUNCTION__ . "($bRefresh) start");
         if (!$this->_sCurrentBranch) {
-            return false;
+            return [
+                "error" => "Error: Current git branch was not detected.",
+            ];
+            // return false;
         }
         $sMessage = $this->getCommitmessageByBranch(false, $bRefresh ? 'dummy_to_force_refresh' : false);
         if ($sMessage) {