Skip to content

Commit fb146ff

Browse files
committed
Track tags when a plugin is already owned by someone else. Fixes jquery-archive#107.
1 parent f900e81 commit fb146ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/hook.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,16 @@ function processRelease( repo, tag, file, manifest, fn ) {
135135
name: manifest.name,
136136
owner: owner
137137
});
138-
return fn( null, null );
138+
139+
// track the tag so we don't process it on the next update
140+
pluginsDb.addTag( repo.id, tag, function( error ) {
141+
if ( error ) {
142+
return fn( error );
143+
}
144+
145+
fn( null, null );
146+
});
147+
return;
139148
}
140149

141150
return owner;

0 commit comments

Comments
 (0)