Community
Participate
Working Groups
Created attachment 200477 [details] log file When running the fetch factory to get code from a repository for the first time (ie, the repo has not been previously cloned for the build), then the appropriate tag/branch does not get checked out, the repo remains on master as a default. This is a problem when building for a branch. The cause is that the checkout task "GitCheckoutTagInLocalRepo" is conditional on a property indicating the existance of the clone. Things go like this: 1) check for repo & set property if it exists 2) if property is set (repo exists) update the repo 3) if property is not set (repo does not exist), clone the repo 4) if property is set, checkout tag 5) re-check for repo existance and set property 6) if property is set, copy code At step 4 we do not do the checkout because the property is still not set. We should be rechecking repo existance and setting the property before trying to checkout a tag. See attached log file for this in action
http://egit.eclipse.org/r/3934
The patch referred to in comment #1 was merged in by Gunnar. I gave Kim a jar with these changes and she is running with them. I'm marking this fixed, but I'm not sure what target milestone to put on it since I don't know where egit is with their releases.