Skip to content

Instantly share code, notes, and snippets.

@jevinskie
Created September 18, 2025 15:37
Show Gist options
  • Save jevinskie/3cbaf26f726c4e9a9f40a49ef04b568c to your computer and use it in GitHub Desktop.
Save jevinskie/3cbaf26f726c4e9a9f40a49ef04b568c to your computer and use it in GitHub Desktop.
reposurgeon subversion rsync conversion

reposurgeon git diff (probably to fix sourceforge rsync issue?):

diff --git a/tool/repotool.go b/tool/repotool.go
index 016a9272..0abcaca2 100644
--- a/tool/repotool.go
+++ b/tool/repotool.go
@@ -589,7 +589,7 @@ func mirror(args []string) {
 		// Those can't be tested locally and they tell rsync to look for rsyncd on the server
 		// side. So, we're going to transform the source address to a : spec.
 		parts := strings.SplitN(operand[8:], "/", 2)
-		operand = parts[0] + ":/" + parts[1]
+		operand = "rsync://" + parts[0] + ":/" + parts[1]
 		runShellProcessOrDie(fmt.Sprintf("rsync --delete -az %s/ %s", operand, locald), "mirroring")
 	} else if strings.HasPrefix(operand, "cvs://") || localrepo(operand, "file://", "cvs") {
 		if mirrordir != "" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment