Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different clone mode #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

different clone mode #16

wants to merge 2 commits into from

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.

None yet

2 participants