-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for non-default git branches #13
Comments
Resolved in version 1.0.19. The branch can be specified on two levels: globally and per-project: multiproject {
branch = 'niceFeature1'
git baseDir: 'upstream_repos', {
project name: 'project1', branch: 'niceFeature2'
project name: 'project3'
project name: 'project2', dependsOn: [ 'project1', 'project3' ]
}
} in the example above the projects project2 and project3 will be checked out to branch "niceFeature1", while project1 will be checked out to branch "niceFeature2". |
Thanks, Let me test this. One quick question: Does the release plugin work in this? Looks like release plugin has a parameter |
I ignore this parameter. It is used solely in initScmPlugin task, and used initScmPlugin is also checking that git repository has "gradle.properties" Since I do "gradle.properties" check myself and branch check is not needed, On Mon, Jul 28, 2014 at 12:12 AM, kavink [email protected] wrote:
|
Thanks! yes i tested it, Seems to be working. i Think i noticed a bug. If the repos are in any other branch.. say xyz and no Should there be a default, if Also would be good to do a log.warn on git actions like checking out branch , committing etc. So its easier to know what is happening. |
Also seems to be another bug when a repo has a a default branch like develop and ARF is trying to do release off master branch, it does not pull latest changes but works of local copy of the branch. Also the the checkout does not have upstream setup. Probably few more commands from grgit needs to be tweaked. like when checking out a branch upstream should be setup and always a pull should be done after checkout |
Looking at build.gradle, There are couple of things i noticed
i am not sure how to fix the error when repo already exist and we have to checkout the branch, maybe try to fetch from origin first and then checkout ? |
Thank you for very useful pointers. I'm now looking into the sources of grgit and starting to understand how to fix the issue. |
Fixed in version 1.0.22. |
Ability to do releases for non-default git branches, e.g. instead of doing releases of master, Maybe a release has to be from branch cool-feature-1 across all repositories.
The text was updated successfully, but these errors were encountered: