summaryrefslogtreecommitdiff
path: root/src/backend/getenv.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-09 19:37:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-09 19:37:11 +0000
commit4dda01f43e00a2412ee05595cb4d3ec559594f28 (patch)
tree9780c1a6d209a8089cbf374dc28c9c0f0cf83857 /src/backend/getenv.py
parent180c2e119142573d42fe0e67a42b3530a7aed70b (diff)
systemBranch -> sys_brch; activeBranch -> act_brch; localBranch -> lcl_brch; remoteBranch -> rmt_brch
Diffstat (limited to 'src/backend/getenv.py')
-rw-r--r--src/backend/getenv.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/getenv.py b/src/backend/getenv.py
index 0dc2ec6..13b3831 100644
--- a/src/backend/getenv.py
+++ b/src/backend/getenv.py
@@ -38,18 +38,18 @@ def csv_addr():
return pcsv_addr, dcsv_addr
-def systemBranch():
- activeBranch = None
+def sys_brch():
+ act_brch = None
if os.path.isdir(os.path.join(sisyphus.getfs.gentooRepoDir, '.git')):
os.chdir(sisyphus.getfs.gentooRepoDir)
- localBranch = subprocess.check_output(
+ lcl_brch = subprocess.check_output(
['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
- if localBranch.decode().strip() == 'master':
- activeBranch = str('master')
+ if lcl_brch.decode().strip() == 'master':
+ act_brch = str('master')
- if localBranch.decode().strip() == 'next':
- activeBranch = str('next')
+ if lcl_brch.decode().strip() == 'next':
+ act_brch = str('next')
- return activeBranch
+ return act_brch