git - Android's Repo not syncing branches other than master -
i'm using repo multi-repository dev-environment.
when trying update repos, repo sync , output shows like:
... github.com:<repo-name> 1c9accf..4b2f449 feature/branch1 -> origin/feature/branch1 ... feature/branch1 branch i'm working on , couple of commits behind origin/feature/branch1. tracking remote branch.
but after repo sync local branch still not updated. repositories still on master working fine - output following:
... fetching projects: 77% (7/9) github.com:<repo-name-on-master> eb99bff..372e69f master -> origin/master fetching projects: 100% (9/9), done. <project-name>/: manifest switched refs/heads/master...master project <project-name>/ updating eb99bff..372e69f fast-forward readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ... so last part - updating - not happening branch1. why that?
default.xml looks , in separate repo on github:
<?xml version="1.0" encoding="utf-8"?> <manifest> <remote name="origin" fetch=".." /> <default revision="master" remote="origin" sync-j="4" /> <project name="repo-name" path="api" /> <project name="repo-name-2" path="docs" /> </manifest> .git/config looks this:
[core] repositoryformatversion = 0 filemode = true ignorecase = true precomposeunicode = true [filter "lfs"] smudge = git-lfs smudge --skip -- %f [remote "origin"] url = git@github.com:<repo-name> projectname = <project-name> fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master [branch "feature/branch1"] remote = origin merge = refs/heads/feature/branch1
if project has been synchronized once, then repo sync is equivalent to:
git remote update
git rebase origin/< branch >
where < branch > is checked-out branch in local project directory. if local branch not tracking branch in remote repository, no synchronization occur project.
the commits remote feature branch there (unless remote tracking branch not configured correctly). not @ tip of local branch.
Comments
Post a Comment