Commit 2688d8db authored by Thomas Schilling's avatar Thomas Schilling Committed by Edward Z. Yang

Make sync-all work with the GitHub mirror.

parent d70fc3c1
......@@ -228,6 +228,8 @@ sub scmall {
my ($repo_base, $checked_out_tree) = getrepo();
my $is_github_repo = $repo_base =~ m/(git@|git:\/\/);
@args = ();
......@@ -270,6 +272,12 @@ sub scmall {
$scm = $$line{"vcs"};
$upstream = $$line{"upstream"};
# We can't create directories on GitHub, so we translate
# "package/foo" into "package-foo".
if ($is_github_repo) {
$remotepath =~ s/\//-/;
# Check the SCM is OK as early as possible
die "Unknown SCM: $scm" if (($scm ne "darcs") and ($scm ne "git"));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment