summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsync-all8
1 files changed, 4 insertions, 4 deletions
diff --git a/sync-all b/sync-all
index d60e5c9ef1..cebb86bc77 100755
--- a/sync-all
+++ b/sync-all
@@ -307,6 +307,10 @@ sub gitall {
for $line (@packages) {
$tag = $$line{"tag"};
+ if ($tags{$tag} == 0) {
+ next;
+ }
+
# Use the "remote" structure for bare git repositories
$localpath = ($bare_flag) ?
$$line{"remotepath"} : $$line{"localpath"};
@@ -340,10 +344,6 @@ sub gitall {
if ($command eq "get") {
next if $remotepath eq "-"; # "git submodule init/update" will get this later
- if ($tags{$tag} == 0) {
- next;
- }
-
if (-d $localpath) {
warning("$localpath already present; omitting")
if $localpath ne ".";