File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,26 @@ describe('git-repo-info', function() {
270
270
271
271
assert . deepEqual ( result , expected ) ;
272
272
} ) ;
273
+
274
+ it ( 'returns an object with repo info for linked worktrees' , function ( ) {
275
+ process . chdir ( path . join ( testFixturesPath , 'linked-worktree' , 'linked' ) ) ;
276
+ var result = repoInfo ( ) ;
277
+
278
+ var expected = {
279
+ branch : null ,
280
+ sha : '409372f3bd07c11bfacee3963f48571d675268d7' ,
281
+ abbreviatedSha : '409372f3bd' ,
282
+ tag : null ,
283
+ committer : null ,
284
+ committerDate : null ,
285
+ author : null ,
286
+ authorDate : null ,
287
+ commitMessage : null ,
288
+ root : path . join ( testFixturesPath , 'linked-worktree' )
289
+ } ;
290
+
291
+ assert . deepEqual ( result , expected ) ;
292
+ } ) ;
273
293
} ) ;
274
294
275
295
describe ( 'repoInfo().root' , function ( ) {
You can’t perform that action at this time.
0 commit comments