0
votes

I only have a develop branch in my repository at the moment. When I try to create a project from it in Teamcity, I get the following error message:

Cannot find revision of the default branch 'refs/heads/master' of vcs root 'dummy VCS root (jetbrains.git)'

The question i:s how can I create a TeamCity build from repo without master branch? In Jenkins usually it makes no problem to build any branch

1
Every project should really have a "master" branch. Maybe there's some way you can "get around it"; maybe your particular scenario is just a TeamCity restriction. But in the long run, you'd just be causing yourself grief if you DIDN'T have a "master". - paulsm4
@paulsm4 from my point of view it is too early now. I will most probably squash all develop commits as an initial commit for master when ready - Kirill
squash all develop commits -> master; push new master -> TeamCity origin: sounds like a good idea :) - paulsm4
Yes, you colud set any name as you wish. But always you need to identify some brach as 'main or default branch' . if you have just one branch, by definition is your 'default branch' . - Mate

1 Answers

1
votes
  1. open attached VCS Roots of your project
  2. Change Default branch to refs/heads/develop
  3. Branch specification set to +:refs/heads/*

enter image description here

Now your default branch is develop, not a master. Also, you able to see all branches because of the Branch specification