File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 20002000 }
20012001 },
20022002 "git_submodule_location" : {
2003- "ignore" : true
2003+ "isAsync" : true ,
2004+ "args" : {
2005+ "location_status" : {
2006+ "isReturn" : true
2007+ },
2008+ "submodule" : {
2009+ "isSelf" : true
2010+ }
2011+ },
2012+ "return" : {
2013+ "isErrorCode" : true
2014+ }
20042015 },
20052016 "git_submodule_open" : {
20062017 "isAsync" : true ,
Original file line number Diff line number Diff line change @@ -53,6 +53,19 @@ describe("Submodule", function() {
5353 } ) ;
5454 } ) ;
5555
56+ it ( "can get submodule location" , function ( ) {
57+ var repo = this . workdirRepository ;
58+ var submoduleName = "vendor/libgit2" ;
59+
60+ return Submodule . lookup ( repo , submoduleName )
61+ . then ( function ( submodule ) {
62+ return submodule . location ( ) ;
63+ } )
64+ . then ( function ( status ) {
65+ assert . equal ( Submodule . STATUS . IN_CONFIG , status ) ;
66+ } ) ;
67+ } ) ;
68+
5669 it ( "can set submodule ignore" , function ( ) {
5770 var repo = this . workdirRepository ;
5871 var submoduleName = "vendor/libgit2" ;
You can’t perform that action at this time.
0 commit comments