From f160db9b30a794cd2746760cfd847c1198805fbe Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Fri, 5 Sep 2025 18:57:47 -0500 Subject: [PATCH] Testing cloning path. --- src/controllers/git.controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/git.controller.js b/src/controllers/git.controller.js index 9d21f2a..84fe291 100755 --- a/src/controllers/git.controller.js +++ b/src/controllers/git.controller.js @@ -101,8 +101,9 @@ module.exports = { const conn = new Client(); conn.on( 'ready', () => { - const commands = [`mkdir -p ${ deployPath }`, `chown ${ user }:${ user } ${ deployPath }`, `su - ${ user } -c "cd ${ deployPath } && git clone git@localhost:/opt/git/${ repoName }.git ."`,]; - + const commands = [`mkdir -p ${ deployPath }`, `chown ${ user }:${ user } ${ deployPath }`, `su - ${ user } -c "cd ${ deployPath } && git clone ${ user }@localhost:/opt/git/${ repoName }.git ."`,]; + console.log(commands); + console.log([...commands].join( ' && ' )); conn.exec( commands.join( ' && ' ), ( err, stream ) => { if (err) { conn.end(); -- 2.43.0