Neko Miko Reimu, we love you
This commit is contained in:
parent
782904d9db
commit
86ac86a42a
@ -15,6 +15,7 @@ $git_host = "https://git.yakumo.dev"
|
|||||||
$git_passwd = "";
|
$git_passwd = "";
|
||||||
$git_user = "";
|
$git_user = "";
|
||||||
@repos = { "aya", "chen" };
|
@repos = { "aya", "chen" };
|
||||||
|
$reporoot = "";
|
||||||
```
|
```
|
||||||
|
|
||||||
## Diagnostics
|
## Diagnostics
|
||||||
|
@ -6,12 +6,17 @@ use warnings;
|
|||||||
my $git_host;
|
my $git_host;
|
||||||
my $git_passwd;
|
my $git_passwd;
|
||||||
my $git_user;
|
my $git_user;
|
||||||
|
my $reporoot;
|
||||||
my @repos;
|
my @repos;
|
||||||
|
|
||||||
do "$ENV{HOME}/.config/svn2git-sync.conf" or die "Can't load config file";
|
do "$ENV{HOME}/.config/svn2git-sync.conf" or die "Can't load config file";
|
||||||
|
|
||||||
|
chdir($reporoot);
|
||||||
|
|
||||||
foreach my $r (@repos) {
|
foreach my $r (@repos) {
|
||||||
print "Processing $r\n";
|
print "Processing $r\n";
|
||||||
system("git -C $r svn --quiet rebase");
|
system("git -C $r svn --quiet rebase");
|
||||||
system("git -C $r push --quiet https://$git_user:$git_passwd\@$git_host/$git_user/$r");
|
system("git -C $r push --quiet https://$git_user:$git_passwd\@$git_host/$git_user/$r");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chdir($ENV{OLDPWD});
|
||||||
|
7
svn2git-sync.conf.example
Normal file
7
svn2git-sync.conf.example
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# vim: syntax=perl
|
||||||
|
# -*- mode: perl -*-
|
||||||
|
$git_host = "https://git.example.com";
|
||||||
|
$git_pass = "nekomikoreimu";
|
||||||
|
$git_user = "hakurei.reimu";
|
||||||
|
$reporoot = "/home/user/git";
|
||||||
|
@repos = { "nekomikoreimu" };
|
Loading…
x
Reference in New Issue
Block a user