projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f18c455
)
gitlive.js
author
Alan Knowles
<alan@akkbhome.com>
Wed, 26 May 2010 16:01:17 +0000
(
00:01
+0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 26 May 2010 16:01:17 +0000
(
00:01
+0800)
gitlive.js
patch
|
blob
|
history
diff --git
a/gitlive.js
b/gitlive.js
index
882f483
..
23c0320
100644
(file)
--- a/
gitlive.js
+++ b/
gitlive.js
@@
-87,7
+87,14
@@
var monitor = new Monitor({
var success = [];
var failure = [];
var repos = [];
+ var done = [];
cmds.forEach(function(cmd) {
+ // prevent duplicate calls..
+ if (done.indexOf(cmd.join(',')) > -1) {
+ continue;
+ }
+ done.push(cmd.join(','));
+
if (repos.indexOf(cmd[0]) < 0) {
repos.push(cmd[0]);
Git.run(cmd[0] , 'pull'); // pull before we push!