GitlabBackupUtil
GitlabBackupUtil copied to clipboard
different clone mode
It should do 'git clone --mirror' for a complete backup of all remote branches, not only a 'master'.
Not sure why you have added the extra .git in the line
const stdout = await cmdAsync(`git clone --mirror ${repo} ${repoPath}.git`)
I understand why you need the --mirror
As far as I remember, git with "--mirror", similar to "--bare" key, will not create original project directory structure. It'll create "${PROJECT_NAME}.git" folder with administrative directory contents as you can see it in "${PROJECT_NAME}/.git" for usual repository clone.