jackhammer icon indicating copy to clipboard operation
jackhammer copied to clipboard

Which branch is scanned by default when scanning git repos?

Open umangkedia opened this issue 8 years ago • 5 comments

Hi,

Which branch is scanned by default when scanning git repos? Can I change the branch somewhere?

umangkedia avatar Jun 10 '17 11:06 umangkedia

by default it scans Master branch . you can change branch name while adding target

screen shot 2017-06-12 at 11 51 17 am

kmadhusudhan avatar Jun 12 '17 06:06 kmadhusudhan

@KMadhuSudhan Hey, Can I change it in some config if possible? Also, why does this option doesn't come in corporate scan? By default, I want to scan develop branch always.

umangkedia avatar Jun 12 '17 06:06 umangkedia

We removed this feature due to the multi selection of teams and repos.Changing the branch name available only in personal scans .

kmadhusudhan avatar Jun 12 '17 12:06 kmadhusudhan

@KMadhuSudhan Makes sense. Can you point me to file where I can change the branch from master to develop and rebuild for internal use?

umangkedia avatar Jun 12 '17 12:06 umangkedia

you can change in web/app/app/workers/base.rb . line no : 41
code: branch = branch.present? ? branch : 'master' change to: branch = branch.present? ? branch : 'develop'

kmadhusudhan avatar Jun 22 '17 05:06 kmadhusudhan