about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-03-06 12:02:46 -0600
committerFrederick Muriuki Muriithi2026-03-06 12:02:46 -0600
commitc43f4317b59f3d2433817fa9e96ba35a14b78f99 (patch)
tree7f2597be5758ee2b76cdcd79b5cfdc6b00441052
parent892f38d73a0603d3ee129e8747328d0f27971b60 (diff)
downloadgn-guile-c43f4317b59f3d2433817fa9e96ba35a14b78f99.tar.gz
Improve config variables' names.
Provide better names for the configuration variables to more clearly
indicate what the variable is concerned with.
-rw-r--r--web/webserver.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/webserver.scm b/web/webserver.scm
index 60503a4..4041f50 100644
--- a/web/webserver.scm
+++ b/web/webserver.scm
@@ -36,8 +36,8 @@
         (substring filename dot-pos) "")))
 
 ;; Look into moving this into a config file.
-(define +current-repo-path+ (getenv "CURRENT_REPO_PATH"))
-(define +bare-repo-path+ (getenv "CGIT_REPO_PATH"))
+(define +local-repo-checkout-path+ (getenv "CURRENT_REPO_PATH"))
+(define +remote-repo-url+ (getenv "CGIT_REPO_PATH"))
 (define +working-branch+ (getenv "GN_GUILE_WORKING_BRANCH"))
 
 (define +info+
@@ -250,14 +250,14 @@ otherwise search for set/group data"
 	     (build-json-response 200
 				  ((lambda ()
 				     (let ((message
-					    (commit-file +current-repo-path+
+					    (commit-file +local-repo-checkout-path+
 							 file-name
 							 content
 							 commit-message
 							 username
 							 email
 							 prev-commit)))
-				       (git-invoke +current-repo-path+ "push" +bare-repo-path+)
+				       (git-invoke +local-repo-checkout-path+ "push" +remote-repo-url+)
 				       message))))))
          (lambda (key . args)
            (let ((msg (car args)))
@@ -330,9 +330,9 @@ otherwise search for set/group data"
     (('GET "species")
      (render-json (get-species-meta)))
     (('GET "edit")
-     (edit-file-handler +current-repo-path+ +working-branch+ request))
+     (edit-file-handler +local-repo-checkout-path+ +working-branch+ request))
     (('POST "commit")
-     (commit-file-handler +current-repo-path+ request body))
+     (commit-file-handler +local-repo-checkout-path+ request body))
     (('GET id)
      (let ((names (get-species-shortnames (get-expanded-species))))
        (match (string->list id)