From 2792db7d924cd5b7886da3c3419983bd4e957900 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Fri, 5 Sep 2025 19:46:33 -0500 Subject: [PATCH] Testing cloning path. --- src/controllers/git.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/git.controller.js b/src/controllers/git.controller.js index 45f371e..c9ed395 100755 --- a/src/controllers/git.controller.js +++ b/src/controllers/git.controller.js @@ -103,7 +103,7 @@ module.exports = { const conn = new Client(); conn.on( 'ready', () => { console.log('ready'); - const commands = [`mkdir -p ${ deployPath }`, `chown ${ user }:${ user } ${ deployPath }`, `su - ${ user } -c "cd ${ deployPath } && git clone ${ user }@localhost:/opt/git/${ repoName }.git ."`,]; + const commands = [`mkdir -p ${ deployPath }`, `chown ${ user }:${ user } ${ deployPath }`, `cd ${ deployPath } && git clone ${ user }@localhost:/opt/git/${ repoName }.git .`,]; console.log(commands); console.log([...commands].join( ' && ' )); conn.exec( commands.join( ' && ' ), ( err, stream ) => { -- 2.43.0