@@ -56,7 +56,7 @@ export class Repository {
5656
5757 async getCurrentBranch ( ) : Promise < string > {
5858 try {
59- const result = await this . svn . info ( this . root ) ;
59+ const result = await this . svn . info ( this . workspaceRoot ) ;
6060 const currentBranch = result . stdout
6161 . match ( / < u r l > ( .* ?) < \/ u r l > / ) [ 1 ]
6262 . split ( "/" )
@@ -79,7 +79,7 @@ export class Repository {
7979 ) ;
8080 const regex = new RegExp ( "<url>(.*?)/(" + trees . join ( "|" ) + ").*?</url>" ) ;
8181
82- const info = await this . svn . info ( this . root ) ;
82+ const info = await this . svn . info ( this . workspaceRoot ) ;
8383
8484 if ( info . exitCode !== 0 ) {
8585 throw new Error ( info . stderr ) ;
@@ -178,15 +178,15 @@ export class Repository {
178178
179179 const repoUrl = await this . getRepoUrl ( ) ;
180180 const newBranch = repoUrl + "/" + branchesLayout + "/" + name ;
181- const resultBranch = await this . svn . info ( this . root ) ;
181+ const resultBranch = await this . svn . info ( this . workspaceRoot ) ;
182182 const currentBranch = resultBranch . stdout . match ( / < u r l > ( .* ?) < \/ u r l > / ) [ 1 ] ;
183183 const result = await this . svn . copy ( currentBranch , newBranch , name ) ;
184184
185185 if ( result . exitCode !== 0 ) {
186186 throw new Error ( result . stderr ) ;
187187 }
188188
189- const switchBranch = await this . svn . switchBranch ( this . root , newBranch ) ;
189+ const switchBranch = await this . svn . switchBranch ( this . workspaceRoot , newBranch ) ;
190190
191191 if ( switchBranch . exitCode !== 0 ) {
192192 throw new Error ( switchBranch . stderr ) ;
@@ -223,7 +223,7 @@ export class Repository {
223223 }
224224
225225 async update ( ) {
226- const result = await this . svn . update ( this . root ) ;
226+ const result = await this . svn . update ( this . workspaceRoot ) ;
227227
228228 if ( result . exitCode !== 0 ) {
229229 throw new Error ( result . stderr ) ;
@@ -238,7 +238,7 @@ export class Repository {
238238 }
239239
240240 async patch ( ) {
241- const result = await this . svn . patch ( this . root ) ;
241+ const result = await this . svn . patch ( this . workspaceRoot ) ;
242242 if ( result . exitCode !== 0 ) {
243243 throw new Error ( result . stderr ) ;
244244 }
@@ -249,7 +249,7 @@ export class Repository {
249249
250250 async propset ( name :string , flag :string , files :string ) {
251251 const filesArray = files . split ( " " ) ;
252- const result = await this . svn . propset ( this . root , name , flag , filesArray ) ;
252+ const result = await this . svn . propset ( this . workspaceRoot , name , flag , filesArray ) ;
253253
254254 console . log ( result ) ;
255255
0 commit comments