From 2fb54ec6d5fd58a981fc52ffe71dbdc7610ead08 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on ChromeOS)" <rob@synchro.net>
Date: Sun, 26 Feb 2023 12:57:06 -0800
Subject: [PATCH] Fix fatal: not a git repository (or any of the parent
 directories): .git

Apparently the cwd is changed back after ever command is invoked.
---
 install/GNUmakefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/install/GNUmakefile b/install/GNUmakefile
index 2e1c3e49ad..60fe7e4e6e 100644
--- a/install/GNUmakefile
+++ b/install/GNUmakefile
@@ -247,10 +247,9 @@ $(REPODIR):
 	git clone https://gitlab.com/SynchronetBBS/sbbs.git $(REPODIR) \
 		|| git clone https://github.com/SynchronetBBS/sbbs.git $(REPODIR) \
 		|| git clone https://gitlab.synchro.net/main/sbbs.git $(REPODIR)
-	cd $(REPODIR)
-	git remote set-url origin https://gitlab.synchro.net/main/sbbs.git
+	cd $(REPODIR); git remote set-url origin https://gitlab.synchro.net/main/sbbs.git
 ifdef TAG
-	git checkout tags/$(TAG)
+	cd $(REPODIR); git checkout tags/$(TAG)
 endif
 
 src: $(REPODIR)
-- 
GitLab