catkin: catkin_prepare_release fails

catkin_prepare_release fails on my repository:

pr2_mechanism $ catkin_prepare_release 
Repository type: git
Found packages: pr2_controller_manager, pr2_mechanism_diagnostics, pr2_controller_interface, pr2_mechanism, pr2_hardware_interface, pr2_mechanism_model
Warning: the following packages do not have a changelog file or entry for the to be released version: pr2_controller_interface, pr2_controller_manager, pr2_hardware_interface, pr2_mechanism, pr2_mechanism_diagnostics, pr2_mechanism_model
Continue without changelogs [y/N]?y
Bump version from 1.8.4 to 1.8.5
Committing the package.xml files...
[hydro-devel 8b2d3a2] 1.8.5
 6 files changed, 6 insertions(+), 6 deletions(-)
Tagging the repository...
Could not determine git remote: Command '['/usr/bin/git', 'config', '--get', 'branch.hydro-devel.remote']' returned non-zero exit status 1

For reference:

$ git remote -v
origin  git@github.com:PR2/pr2_mechanism.git (fetch)
origin  git@github.com:PR2/pr2_mechanism.git (push)
$ git branch
  beltcomp
  beltcomp_cturtle
  ft_sensor
* hydro-devel
  master
  online_cal
  pr2_mechanism-1.0
  pr2_mechanism-1.2
  pr2_mechanism-1.4
  pr2_mechanism-1.5
  pr2_mechanism-1.6
  shadowint

There is no confirmation step and no obvious message indicating what when wrong or what I can do to fix it, so I’ve now burned three minor release numbers fighting this. 😦

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

I fixed the git config line by setting my local branch to track an upstream branch, with:

$ git branch hydro-devel --set-upstream remotes/origin/hydro-devel
$ git config --get branch.hydro-devel.remote
origin

Suggest you make this check before making changes to the repository and explicitly warn the user about it.

As of November 2017 the --set-upstream flag has depreciated. To set your current branch to be tracked for changes you can use --track instead.

$ git branch hydro-devel --track remotes/origin/hydro-devel