From 3d24a3a8d57c35a02e7a610765f54b39aef3e40b Mon Sep 17 00:00:00 2001
From: Antonio Augusto Alves Junior <aalvesju@gmail.com>
Date: Tue, 8 Jun 2021 18:52:10 +0200
Subject: [PATCH] Update conf.py

---
 documentation/conf.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/documentation/conf.py b/documentation/conf.py
index 04ebb054c..db2be7a07 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -17,12 +17,12 @@ def getDocumentationUrl(base_name, repo_dir):
     with open(repo_dir + '/.git/HEAD', 'r') as file :
         lines = file.read().splitlines()
 
+    branchname =''
     for line in lines:
-        #if "ref:" in line: 
-        branchname=line.partition("refs/heads/")[1]
+        if "ref:" in line : branchname=line.partition("refs/heads/")[1]
     
     if branchname=='master': name='latest'
-    else: name=branchname
+    else: name="tes"
     
     return base_name + '/' + name 
 
-- 
GitLab