X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=sync-all;h=3ccbc8620eaffaf0609c1bda88dc2b736f2996fb;hp=7ccc71d221650a8c0fba70b9310a52c2cb223f63;hb=5e060e6653ca7aba825aeaa92a1b24d218d27fc2;hpb=06f69812ccf28af381cd97e7759d00a27d9709ac diff --git a/sync-all b/sync-all index 7ccc71d..3ccbc86 100755 --- a/sync-all +++ b/sync-all @@ -310,20 +310,14 @@ sub scmall { if (-d "$localpath/.git") { die "Found both _darcs and .git in $localpath"; } - else { - $scm = "darcs"; - } - } - else { - if (-d "$localpath/.git") { - $scm = "git"; - } - elsif ($tag eq "") { - die "Required repo $localpath is missing"; - } - else { - message "== $localpath repo not present; skipping"; - } + $scm = "darcs"; + } elsif (-d "$localpath/.git") { + $scm = "git"; + } elsif ($tag eq "") { + die "Required repo $localpath is missing"; + } else { + message "== $localpath repo not present; skipping"; + next; } # Work out the arguments we should give to the SCM