Questions tagged [simple-git]
5 questions
1
vote
1 answer
SimpleGit library not working with vscode extension
I'm trying to get SimpleGit to work in my vscode extension. To make sure I'm using it properly I created this typescript file
import simpleGit, { SimpleGit, CleanOptions } from 'simple-git';
const git: SimpleGit =…

user6680
- 79
- 6
- 34
- 78
0
votes
0 answers
Use Sinon to stub simple-git methods
I am struggling to stub methods coming from the simple-git library using Sinon.
Here the method I would like to test:
const git = require('simple-git');
module.exports.getGitPushCommandChildProcess = async (centralisedRepoFolderPath, branchName)…

user3727540
- 922
- 3
- 11
- 30
0
votes
0 answers
simple-git not working when generating electron build for MAC OSX
I'm trying to do a git clone with SSH, using simple-git in an electron app.
If I run in dev mode, everything goes well, and I can clone the repo, but when I build the application to a native mac osx app (*.app), I'm always getting an error…

Boogie
- 750
- 7
- 17
0
votes
0 answers
Get commits from one repo and push to another using Github api and simpeGit
I have a simple node app that uses GitHub webhooks that tell mes that a push has been made to my repo. I want to now be able to push those changes to another repo to sync them. I was trying to use simpleGit but it is not working for me.
This is my…

nb_nb_nb
- 1,243
- 11
- 36
0
votes
1 answer
simple-git: SSH authentication example using simple-git
How to clone a repository with SSH using simple-git?
I'm trying to clone using this code
const git: SimpleGit = simpleGit();
const sshUri = 'git@..........'
const localPath = '/usr/workspace';
git
.clone(
sshUri,
localPath
).then((data) =>…

Bharath
- 196
- 1
- 4