Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 1a8db31

Browse files
committed
Merge pull request #51 from fiznool/master
Fixed slow fetching from remote
2 parents 01a23e3 + 2838c12 commit 1a8db31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks/build_control.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ module.exports = function (grunt) {
200200
log.subhead('Fetching ' + options.branch + ' history from ' + options.remote + '.');
201201

202202
// `--update-head-ok` allows fetch on a branch with uncommited changes
203-
execWrap('git fetch --verbose --update-head-ok ' + remoteName + ' ' + options.branch + ':' + options.branch);
203+
execWrap('git fetch --progress --verbose --update-head-ok ' + remoteName + ' ' + options.branch + ':' + options.branch, false, true);
204204
}
205205

206206
// Make the current working tree the branch HEAD without checking out files
@@ -215,7 +215,8 @@ module.exports = function (grunt) {
215215

216216
// Fetch remote refs
217217
function gitFetch () {
218-
execWrap('git fetch ' + remoteName, false);
218+
log.subhead('Fetching ' + options.branch + ' history from ' + options.remote + '.');
219+
execWrap('git fetch --progress --verbose ' + remoteName, false, true);
219220
}
220221

221222
// Set branch to track remote

0 commit comments

Comments
 (0)