~jan0sch/smederee

Showing details for patch 22a9ce0f326ccf4bef3e6397cbd24ba415d745dd.
2022-08-29 (Mon), 10:02 AM - Jens Grassel - 22a9ce0f326ccf4bef3e6397cbd24ba415d745dd

SSH: Create proper repo dir types

Summary of changes
1 files modified with 4 lines added and 2 lines removed
  • modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala with 4 added and 2 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala new-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala	2025-03-11 00:30:38.880382406 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/ssh/DarcsSshCommand.scala	2025-03-11 00:30:38.880382406 +0000
@@ -61,9 +61,10 @@
 
   override def start(channel: ChannelSession, env: Environment): Unit = {
     log.debug(s"DarcsApply for $owner/$repository")
+    val repoDir = Paths.get(owner.toString, repository.toString)
     val cmd = os.proc(
       darcsConfiguration.executable.toString,
-      List("apply", "--all", "--repodir", s"$owner/$repository")
+      List("apply", "--all", "--debug", "--repodir", repoDir.toString)
     )
     cmd.call(
       cwd = os.Path(darcsConfiguration.repositoriesDirectory.toPath),
@@ -93,9 +94,10 @@
 
   override def start(channel: ChannelSession, env: Environment): Unit = {
     log.debug(s"DarcsTransferMode for $owner/$repository")
+    val repoDir = Paths.get(owner.toString, repository.toString)
     val cmd = os.proc(
       darcsConfiguration.executable.toString,
-      List("transfer-mode", "--repodir", s"$owner/$repository")
+      List("transfer-mode", "--repodir", repoDir.toString)
     )
     cmd.call(
       cwd = os.Path(darcsConfiguration.repositoriesDirectory.toPath),