File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Model.prototype.tryOpenRepository = async function(path) {
2828 return ;
2929 }
3030
31- const repository = new Repository ( this . svn . open ( repositoryRoot ) ) ;
31+ const repository = new Repository ( this . svn . open ( repositoryRoot , path ) ) ;
3232
3333 this . open ( repository ) ;
3434 } catch ( err ) {
Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ svn.prototype.isSVNAvailable = function() {
109109 } ) ;
110110} ;
111111
112- svn . prototype . open = function ( repositoryRoot ) {
113- return new Repository ( this , repositoryRoot ) ;
112+ svn . prototype . open = function ( repositoryRoot , workspaceRoot ) {
113+ return new Repository ( this , repositoryRoot , workspaceRoot ) ;
114114} ;
115115
116116svn . prototype . cmd = function ( args ) {
@@ -145,12 +145,13 @@ svn.prototype.add = function(filePath) {
145145
146146module . exports = svn ;
147147
148- function Repository ( svn , repositoryRoot ) {
148+ function Repository ( svn , repositoryRoot , workspaceRoot ) {
149149 this . svn = svn ;
150150 this . root = repositoryRoot ;
151+ this . workspaceRoot = workspaceRoot ;
151152
152153 this . svn . client . option ( {
153- cwd : this . root ,
154+ cwd : this . workspaceRoot ,
154155 noAuthCache : true
155156 } ) ;
156157}
You can’t perform that action at this time.
0 commit comments