@@ -103,31 +103,31 @@ abstract class Repository extends AsyncOptionalCreatable<RepositoryOptions> {
103
103
104
104
public getBranchName ( ) : string {
105
105
const branch =
106
- this . env . getString ( 'CIRCLE_BRANCH' , null ) || exec ( 'npx git branch --show-current' , { silent : true } ) . stdout ;
106
+ this . env . getString ( 'CIRCLE_BRANCH' , null ) || exec ( 'git branch --show-current' , { silent : true } ) . stdout ;
107
107
return ensureString ( branch ) ;
108
108
}
109
109
110
110
public pushChangesToGit ( ) : void {
111
111
const branch = this . getBranchName ( ) ;
112
- const cmd = `npx git push --set-upstream --no-verify --follow-tags origin ${ branch } ` ;
112
+ const cmd = `git push --set-upstream --no-verify --follow-tags origin ${ branch } ` ;
113
113
this . execCommand ( cmd , false ) ;
114
114
}
115
115
116
116
public stageChanges ( ) : void {
117
- this . execCommand ( 'npx git add .' , false ) ;
117
+ this . execCommand ( 'git add .' , false ) ;
118
118
}
119
119
120
120
public revertUnstagedChanges ( ) : void {
121
- const changedFiles = exec ( 'npx git diff --name-only' , { silent : true } )
121
+ const changedFiles = exec ( 'git diff --name-only' , { silent : true } )
122
122
. stdout . split ( os . EOL )
123
123
. filter ( ( f ) => ! ! f ) ;
124
124
changedFiles . forEach ( ( file ) => {
125
- exec ( `npx git checkout -- ${ file } ` , { silent : false } ) ;
125
+ exec ( `git checkout -- ${ file } ` , { silent : false } ) ;
126
126
} ) ;
127
127
}
128
128
129
129
public revertAllChanges ( ) : void {
130
- exec ( 'npx git reset --hard HEAD' , { silent : true } ) ;
130
+ exec ( 'git reset --hard HEAD' , { silent : true } ) ;
131
131
}
132
132
133
133
public printStage ( msg : string ) : void {
0 commit comments