mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Clone to the dir specified in rebar.config... useful for erlang-sqlite3
This commit is contained in:
parent
b41ce8828c
commit
c8bec07c45
@ -65,7 +65,7 @@ sub update_deps_repos {
|
|||||||
say "Downloading $dep...";
|
say "Downloading $dep...";
|
||||||
my $repo = $deps->{$dep}->{repo};
|
my $repo = $deps->{$dep}->{repo};
|
||||||
$repo =~ s!^https?://github.com/!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, $dep);
|
||||||
} elsif (time() - stat($dd)->mtime > 24 * 60 * 60 or $force) {
|
} elsif (time() - stat($dd)->mtime > 24 * 60 * 60 or $force) {
|
||||||
say "Updating $dep...";
|
say "Updating $dep...";
|
||||||
system("git", "-C", $dd, "pull");
|
system("git", "-C", $dd, "pull");
|
||||||
|
Loading…
Reference in New Issue
Block a user