Clone to the dir specified in rebar.config... useful for erlang-sqlite3

This commit is contained in:
Badlop 2021-02-19 17:33:58 +01:00
parent b41ce8828c
commit c8bec07c45
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ sub update_deps_repos {
say "Downloading $dep...";
my $repo = $deps->{$dep}->{repo};
$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) {
say "Updating $dep...";
system("git", "-C", $dd, "pull");