Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
Description
1. Configure plan branches: set "automatic branch detection" to on, input something into "Only create branches..." field. For example "test.*"
2. save.
3. Go to source Repositories, default repository, change it's repositoryUrl (I assume it is git/hg repository).
4. Save. (It doesn't matter if you change to something valid - just repositoryUrl must differ)
5. Go to plan's Branches configuration.
6a. Automatic Branch Detection is off. If you tick it - you will see the "Only create branches..." field is still "text.*".
6b. While I expected ABD to be still turned on.
I think the problem is in the (I wrote it) BAM-10613 - if you edit default repository then the autodetection should turn off if new repository does not support branch detection. Apparently I must have skewed the logic, somewhere around lines 226-240 of RepositoryConfigurationServiceImpl.java