commit 674075e777343f0fb02e99dec67726ba2555729c
Author: Simon Watson <spw01@protonmail.com>
Date: Fri Jul 16 20:37:03 2021 -0400
Small script to migrate from old git setup
diff --git a/migrate_to_gogs.pl b/migrate_to_gogs.pl
new file mode 100755
index 0000000..3f5dccf
--- /dev/null
+++ b/migrate_to_gogs.pl
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+my $top_level = "/Users/swatson/Repos/git_migration/";
+my @dirs = split("\n", `ls -d */`);
+
+foreach my $dir (@dirs) {
+ #print("$dir\n");
+ $dir =~ s/\/$//g;
+ my $output = `git -C $dir remote set-url origin ssh://git\@git.spwbk.site:2222/swatson/$dir.git`;
+ print "$output\n";
+ $output = `git -C $dir remote -v`;
+ print $output;
+
+}
+
+