File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,6 @@ export async function executeDeploy(
124
124
125
125
const org = await Org . create ( { aliasOrUsername : opts [ 'target-org' ] } ) ;
126
126
const usernameOrConnection = org . getConnection ( ) ;
127
- // instantiate source tracking
128
- // stl will decide, based on the org's properties, what needs to be done
129
- const stl = await SourceTracking . create ( {
130
- org,
131
- project,
132
- subscribeSDREvents : true ,
133
- ignoreConflicts : opts [ 'ignore-conflicts' ] ,
134
- } ) ;
135
127
136
128
if ( opts [ 'metadata-dir' ] ) {
137
129
if ( id ) {
@@ -146,6 +138,14 @@ export async function executeDeploy(
146
138
await deploy . start ( ) ;
147
139
}
148
140
} else {
141
+ // instantiate source tracking
142
+ // stl will decide, based on the org's properties, what needs to be done
143
+ const stl = await SourceTracking . create ( {
144
+ org,
145
+ project,
146
+ subscribeSDREvents : true ,
147
+ ignoreConflicts : opts [ 'ignore-conflicts' ] ,
148
+ } ) ;
149
149
componentSet = await buildComponentSet ( opts , stl ) ;
150
150
if ( componentSet . size === 0 ) {
151
151
throw new SfError (
You can’t perform that action at this time.
0 commit comments