Skip to content

Commit b333644

Browse files
authored
Merge pull request #2811 from iclanton/ianc/fix-no-fetch
[rush] Fix the --no-fetch parameter
2 parents 2548dc6 + 568364b commit b333644

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

apps/rush-lib/src/cli/actions/ChangeAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class ChangeAction extends BaseRushAction {
332332
projectChangeAnalyzer.getChangedProjectsAsync({
333333
targetBranchName: this._targetBranch,
334334
terminal: this._terminal,
335-
shouldFetch: this._noFetchParameter.value
335+
shouldFetch: !this._noFetchParameter.value
336336
});
337337
const projectHostMap: Map<string, string> = this._generateHostMap();
338338

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Fix an issue where the \"--no-fetch\" \"rush change\" parameter would cause a \"git fetch\" and absence of that parameter wouldn't fetch.",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "[email protected]"
11+
}

0 commit comments

Comments
 (0)