Menu

#23 cloning a specific branch clones unwanted branch 'master' of sub-repos

v0.10
open
nobody
None
5
2014-12-12
2014-12-12
No

command: gits clone -b <branch> <something>

Expected behavior:
What I expect is to clone only this specific <branch> from all repositories.

When I run gits branch after the clone, I expect to see only this specific branch on all repositories and no other branch.

Actual behavior:
What actually happens is the top-level repo contains this branch only (as expected), but all sub-repos contain branches master and <branch>.

Possible cause:
When cloning the sub-repos, gitslave does not pass in the -b argument. Instead it switches branches after having cloned the repos.

Discussion


Log in to post a comment.