Skip to content

Conversation

@iglotov
Copy link

@iglotov iglotov commented Nov 5, 2020

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

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

itsTeknas commented Dec 8, 2021

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

@iglotov
Copy link
Author

iglotov commented Mar 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants