From c304d9515a906dcb2aa65216acc7b861fa832735 Mon Sep 17 00:00:00 2001 From: Guanxiying Date: Fri, 16 Apr 2021 10:07:19 +0800 Subject: [PATCH] * Fix bug 12052. --- lib/scm/gitlab.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scm/gitlab.class.php b/lib/scm/gitlab.class.php index cbe2a0cbad..c021adb7a7 100644 --- a/lib/scm/gitlab.class.php +++ b/lib/scm/gitlab.class.php @@ -20,7 +20,7 @@ class gitlab $this->client = $client; $this->root = rtrim($root, '/') . '/'; $this->token = $password; - $this->branch = isset($_COOKIE['repoBranch']) ? $_COOKIE['repoBranch'] : ''; + $this->branch = isset($_COOKIE['repoBranch']) ? $_COOKIE['repoBranch'] : 'HEAD'; } /**