Skip to content

Commit f81dfeb

Browse files
committed
Extend timeout
1 parent 2a11e08 commit f81dfeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gitHooks/precommit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ git stash -u
3636
$ git stash pop
3737
`;
3838

39-
const FETCH_TIMEOUT = 100;
39+
const FETCH_TIMEOUT = 10 * 1000; // 10 seconds
4040

4141
function timeoutPromise(millis) {
4242
return new Promise((resolve, reject) => {
@@ -70,7 +70,7 @@ function timeoutPromise(millis) {
7070
symbol: '⚠️'
7171
});
7272
console.warn(
73-
chalk`\n{yellow Unable to fetch latest version of master, diff may be stale.}`
73+
chalk`\n{yellow WARNING: Unable to fetch latest version of master, diff may be stale.}`
7474
);
7575
}
7676

0 commit comments

Comments
 (0)