From a54bc7c42f0235e168b3c7978bff088ae9ec20d7 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 28 Aug 2024 20:25:29 +0200 Subject: [PATCH] try --- borg.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/borg.el b/borg.el index 3c91ace..148cf95 100644 --- a/borg.el +++ b/borg.el @@ -139,7 +139,8 @@ default value.") (directory-file-name borg-drones-directory))) topdir) (locate-dominating-file borg-drones-directory "init.el") - (and (file-in-directory-p libdir user-emacs-directory) + (and (or (file-in-directory-p libdir user-emacs-directory) + (equal (getenv "CI") "true")) user-emacs-directory) (error "Could not determine `borg-user-emacs-directory'")) "Directory beneath which additional per-user Emacs-specific files are placed. @@ -156,7 +157,8 @@ directory is used.") (file-name-as-directory (car (process-lines "git" "rev-parse" "--show-toplevel"))))) - (error "Could not determine `borg-top-level-directory'")) + (and (not (equal (getenv "CI") "true")) + (error "Could not determine `borg-top-level-directory'"))) "The top-level of repository containing `borg-user-emacs-directory'.") )