24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Fix clone code in update-deps-release

This commit is contained in:
Paweł Chmielowski 2017-06-28 16:47:31 +02:00
parent e42bb47ce3
commit 9dd03c873c

View File

@ -56,7 +56,7 @@ sub update_deps_repos {
if (not -d $dd) { if (not -d $dd) {
say "Downloading $dep..."; say "Downloading $dep...";
my $repo = $deps->{$dep}->{repo}; my $repo = $deps->{$dep}->{repo};
$repo =~ s!^https?://github/!git\@github.com:!; $repo =~ s!^https?://github.com/!git\@github.com:!;
system("git", "-C", ".deps-update", "clone", $repo); system("git", "-C", ".deps-update", "clone", $repo);
} elsif (time() - stat($dd)->mtime > 24 * 60 * 60) { } elsif (time() - stat($dd)->mtime > 24 * 60 * 60) {
say "Updating $dep..."; say "Updating $dep...";
@ -407,7 +407,6 @@ while (1) {
$top_changes{$op->{dep}} = $op->{version}; $top_changes{$op->{dep}} = $op->{version};
} }
update_deps_versions("rebar.config", %top_changes); update_deps_versions("rebar.config", %top_changes);
for my $op (@operations) { for my $op (@operations) {
if ($git_info->{$op->{dep}}->{last_tag} ne $op->{version}) { if ($git_info->{$op->{dep}}->{last_tag} ne $op->{version}) {
git_push($op->{dep}); git_push($op->{dep});