diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2014-06-17 18:25:33 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2014-06-23 16:04:16 +0200 |
commit | 101c3f77706df77f5ef7df68cb08437131ec3aa0 (patch) | |
tree | 417c5dbedc6e3657f3421806d30941a8498c5469 /sync-all | |
parent | bd07942e4d1cb92d9c1eb8b776f38a95aa8bbe7e (diff) | |
download | haskell-101c3f77706df77f5ef7df68cb08437131ec3aa0.tar.gz |
sync-all: die for real when required repo is missing
Since commit 0e17d4, the default "tag" is "-", not "". It is never
undefined.
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -340,10 +340,6 @@ sub gitall { if ($command eq "get") { next if $remotepath eq "-"; # "git submodule init/update" will get this later - # Skip any repositories we have not included the tag for - if (not defined($tags{$tag})) { - $tags{$tag} = 0; - } if ($tags{$tag} == 0) { next; } @@ -366,8 +362,8 @@ sub gitall { my $git_repo_present = 1 if -e "$localpath/.git" || ($bare_flag && -d "$localpath"); if (not $git_repo_present) { - if ($tag eq "") { - die "Required repo $localpath is missing"; + if ($tag eq "-") { + die "Required repo $localpath is missing. Please first run './sync-all get'.\n"; } else { message "== $localpath repo not present; skipping"; |