File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ function stat(files) {
55
55
map . get ( p . dir ) . add ( p . base ) ;
56
56
}
57
57
}
58
- for ( let [ k , v ] of map ) {
59
- console . log ( `dir: ${ k } \t=>\t ${ v . size } ` ) ;
60
- }
58
+ // for (let [k, v] of map) {
59
+ // console.log(`dir: ${k} \t=>\t ${v.size}`);
60
+ // }
61
61
return map ;
62
62
}
63
63
@@ -71,7 +71,7 @@ function check(map) {
71
71
72
72
// make sure the remote and current are on the same commit
73
73
var currentBranch = ( p . execSync ( `git branch --show-current` ) + "" ) . trim ( )
74
- var command = `git diff ${ currentBranch } origin/${ currentBranch } `
74
+ var command = `git fetch origin && git diff ${ currentBranch } origin/${ currentBranch } `
75
75
console . log ( `Running '${ command } '` )
76
76
var remoteDiffs = p . execSync ( command ) + ""
77
77
if ( remoteDiffs ) {
@@ -107,9 +107,9 @@ if (!process.argv.includes("-nocheck")) {
107
107
check ( map ) ;
108
108
}
109
109
110
- console . log ( "The diff of artifacts" ) ;
110
+
111
111
var output = p . spawnSync ( `git diff jscomp/artifacts.json` , {
112
112
cwd : root ,
113
113
encoding : "utf8"
114
114
} ) ;
115
- console . log ( output . stdout ) ;
115
+ console . log ( "The diff of artifacts" , output . stdout ) ;
You can’t perform that action at this time.
0 commit comments