GitlabBackupUtil icon indicating copy to clipboard operation
GitlabBackupUtil copied to clipboard

different clone mode

Open iglotov opened this issue 5 years ago • 2 comments

It should do 'git clone --mirror' for a complete backup of all remote branches, not only a 'master'.

iglotov avatar Nov 05 '20 11:11 iglotov

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

itsTeknas avatar Dec 08 '21 05:12 itsTeknas

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.

iglotov avatar Mar 02 '22 02:03 iglotov