I am trying to make an automatic release script that will create a tag in git on the development branch (or feature branch) that GO is looking at. The script should find out which remote branch the commit sha1 in $go_revision comes from, check it out, create a tag and move it to a master branch. All in one swoop. However if I issue git branch in the build dir in my development pipeline git says "master". Even though the pipeline is setup to fetch from a development branch.
Any ideas how to solve my branch problem OR any finished scripts that does what I want will be appreciated :)
Developer at YouSee