@@ -78,9 +78,9 @@ private void InitCommand(object sender, EventArgs e)
78
78
var versionTag = string . IsNullOrEmpty ( flowDialog . GitConfig . TagPrefix ) ? "\" \" " : flowDialog . GitConfig . TagPrefix ;
79
79
80
80
/* 1. Add GitFlow config options
81
- * 2. Checkout develop branch (create if it doesn't exist, reset if it does)
82
- * 3. Push develop branch
83
- */
81
+ * 2. Checkout develop branch (create if it doesn't exist, reset if it does)
82
+ * 3. Push develop branch
83
+ */
84
84
var process = ProcessHelper . StartProcessGui ( _dte , _envHelper ,
85
85
"cmd.exe" ,
86
86
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
@@ -118,7 +118,7 @@ private void StartFeatureCommand(object sender, EventArgs e)
118
118
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
119
119
GitHelper . GetSshSetup ( _envHelper ) +
120
120
FormatCliCommand ( $ "checkout { flowOptions . DevelopBranch } ") +
121
- FormatCliCommand ( "pull" ) +
121
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
122
122
FormatCliCommand ( $ "checkout -b { flowOptions . FeaturePrefix } { featureName } { flowOptions . DevelopBranch } ", false ) ,
123
123
$ "Starting feature { featureName } "
124
124
) ;
@@ -139,7 +139,7 @@ private void StartFeatureGitHubCommand(object sender, EventArgs e)
139
139
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
140
140
GitHelper . GetSshSetup ( _envHelper ) +
141
141
FormatCliCommand ( "checkout master" ) +
142
- FormatCliCommand ( "pull" ) +
142
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
143
143
FormatCliCommand ( $ "checkout -b { featureName } master", false ) ,
144
144
$ "Starting feature { featureName } "
145
145
) ;
@@ -164,7 +164,7 @@ private void FinishFeatureCommand(object sender, EventArgs e)
164
164
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
165
165
GitHelper . GetSshSetup ( _envHelper ) +
166
166
FormatCliCommand ( $ "checkout { gitConfig . DevelopBranch } ") +
167
- FormatCliCommand ( "pull" ) +
167
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
168
168
FormatCliCommand ( $ "merge --no-ff { featureBranch } ", false ) ,
169
169
$ "Finishing feature { featureName } ",
170
170
featureBranch , null , _options , FormatCliCommand ( $ "push origin { gitConfig . DevelopBranch } ")
@@ -195,7 +195,7 @@ private void FinishFeatureGitHubCommand(object sender, EventArgs e)
195
195
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
196
196
GitHelper . GetSshSetup ( _envHelper ) +
197
197
FormatCliCommand ( "checkout master" ) +
198
- FormatCliCommand ( "pull" ) +
198
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
199
199
FormatCliCommand ( $ "merge --no-ff { featureBranch } ", false ) ,
200
200
$ "Finishing feature { featureName } ",
201
201
featureBranch , null , _options , FormatCliCommand ( "push origin master" ) ) ;
@@ -218,7 +218,7 @@ private void StartReleaseCommand(object sender, EventArgs e)
218
218
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
219
219
GitHelper . GetSshSetup ( _envHelper ) +
220
220
FormatCliCommand ( $ "checkout { flowOptions . DevelopBranch } ") +
221
- FormatCliCommand ( "pull" ) +
221
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
222
222
FormatCliCommand ( $ "checkout -b { flowOptions . ReleasePrefix } { releaseVersion } { flowOptions . DevelopBranch } ", false ) ,
223
223
$ "Starting release { releaseVersion } "
224
224
) ;
@@ -249,11 +249,11 @@ private void FinishReleaseCommand(object sender, EventArgs e)
249
249
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
250
250
GitHelper . GetSshSetup ( _envHelper ) +
251
251
FormatCliCommand ( $ "checkout { gitConfig . MasterBranch } ") +
252
- FormatCliCommand ( "pull" ) +
252
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
253
253
FormatCliCommand ( $ "merge --no-ff { releaseBranch } ") +
254
254
FormatCliCommand ( $ "tag { gitConfig . TagPrefix } { releaseName } ") +
255
255
FormatCliCommand ( $ "checkout { gitConfig . DevelopBranch } ") +
256
- FormatCliCommand ( "pull" ) +
256
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
257
257
FormatCliCommand ( $ "merge --no-ff { releaseBranch } ", false ) ,
258
258
$ "Finishing release { releaseName } ",
259
259
releaseBranch , null , _options ,
@@ -280,7 +280,7 @@ private void StartHotfixCommand(object sender, EventArgs e)
280
280
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
281
281
GitHelper . GetSshSetup ( _envHelper ) +
282
282
FormatCliCommand ( $ "checkout { flowOptions . MasterBranch } ") +
283
- FormatCliCommand ( "pull" ) +
283
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
284
284
FormatCliCommand ( $ "checkout -b { flowOptions . HotfixPrefix } { hotfixVersion } { flowOptions . MasterBranch } ", false ) ,
285
285
$ "Starting hotfix { hotfixVersion } "
286
286
) ;
@@ -311,11 +311,11 @@ private void FinishHotfixCommand(object sender, EventArgs e)
311
311
$ "/c cd \" { _envHelper . GetSolutionDir ( ) } \" && " +
312
312
GitHelper . GetSshSetup ( _envHelper ) +
313
313
FormatCliCommand ( $ "checkout { gitConfig . MasterBranch } ") +
314
- FormatCliCommand ( "pull" ) +
314
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
315
315
FormatCliCommand ( $ "merge --no-ff { hotfixBranch } ") +
316
316
FormatCliCommand ( $ "tag { gitConfig . TagPrefix } { hotfixName } ") +
317
317
FormatCliCommand ( $ "checkout { gitConfig . DevelopBranch } ") +
318
- FormatCliCommand ( "pull" ) +
318
+ ( _options . PullChanges ? FormatCliCommand ( "pull" ) : string . Empty ) +
319
319
FormatCliCommand ( $ "merge --no-ff { hotfixBranch } ", false ) ,
320
320
$ "Finishing hotfix { hotfixName } ",
321
321
hotfixBranch , null , _options ,
0 commit comments