@@ -278,14 +278,27 @@ describe('CloudManagerClient', () => {
278278 const cloneArgs = getGitArgs ( execFileSyncStub . firstCall ) ;
279279 const cloneArgsStr = getGitArgsStr ( execFileSyncStub . firstCall ) ;
280280 expect ( cloneArgs ) . to . include ( 'clone' ) ;
281- expect ( cloneArgsStr ) . to . include ( ` http.${ TEST_STANDARD_REPO_URL } . extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==` ) ;
281+ expect ( cloneArgsStr ) . to . include ( ' http.https://git.cloudmanager.adobe.com/myorg/. extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==' ) ;
282282 expect ( cloneArgsStr ) . to . include ( TEST_STANDARD_REPO_URL ) ;
283283 expect ( cloneArgs ) . to . include ( EXPECTED_CLONE_PATH ) ;
284284 // No credentials in the URL itself
285285 expect ( cloneArgsStr ) . to . not . include ( 'stduser:stdtoken123@' ) ;
286286 expect ( cloneArgsStr ) . to . not . include ( 'Bearer' ) ;
287287 } ) ;
288288
289+ it ( 'includes --recurse-submodules in the clone arguments' , async ( ) => {
290+ const client = CloudManagerClient . createFrom ( createContext ( ) ) ;
291+
292+ await client . clone (
293+ TEST_PROGRAM_ID ,
294+ TEST_REPO_ID ,
295+ { imsOrgId : TEST_IMS_ORG_ID } ,
296+ ) ;
297+
298+ const gitArgs = getGitArgs ( execFileSyncStub . firstCall ) ;
299+ expect ( gitArgs ) . to . include ( '--recurse-submodules' ) ;
300+ } ) ;
301+
289302 it ( 'throws when standard credentials not found for programId' , async ( ) => {
290303 const client = CloudManagerClient . createFrom (
291304 createContext ( { CM_STANDARD_REPO_CREDENTIALS : TEST_STANDARD_CREDENTIALS } ) ,
@@ -784,7 +797,7 @@ describe('CloudManagerClient', () => {
784797 const pushArgs = getGitArgs ( execFileSyncStub . firstCall ) ;
785798 const pushArgStr = getGitArgsStr ( execFileSyncStub . firstCall ) ;
786799 expect ( pushArgStr ) . to . include ( 'push' ) ;
787- expect ( pushArgStr ) . to . include ( ` http.${ TEST_STANDARD_REPO_URL } . extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==` ) ;
800+ expect ( pushArgStr ) . to . include ( ' http.https://git.cloudmanager.adobe.com/myorg/. extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==' ) ;
788801 expect ( pushArgStr ) . to . include ( TEST_STANDARD_REPO_URL ) ;
789802 expect ( pushArgStr ) . to . not . include ( 'stduser:stdtoken123@' ) ;
790803 expect ( pushArgStr ) . to . not . include ( 'Bearer' ) ;
@@ -846,7 +859,7 @@ describe('CloudManagerClient', () => {
846859
847860 const pullArgStr = getGitArgsStr ( execFileSyncStub . firstCall ) ;
848861 expect ( pullArgStr ) . to . include ( 'pull' ) ;
849- expect ( pullArgStr ) . to . include ( ` http.${ TEST_STANDARD_REPO_URL } . extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==` ) ;
862+ expect ( pullArgStr ) . to . include ( ' http.https://git.cloudmanager.adobe.com/myorg/. extraheader=Authorization: Basic c3RkdXNlcjpzdGR0b2tlbjEyMw==' ) ;
850863 expect ( pullArgStr ) . to . include ( TEST_STANDARD_REPO_URL ) ;
851864 expect ( pullArgStr ) . to . not . include ( 'stduser:stdtoken123@' ) ;
852865 expect ( pullArgStr ) . to . not . include ( 'Bearer' ) ;
0 commit comments