diff --git a/install/GNUmakefile b/install/GNUmakefile
index 2e1c3e49adad6d214e35f5c34eee14e82165774c..60fe7e4e6e08099934a5478ba03f3c959d724c63 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)