Ask Your Question

Why does rosinstall say my git repo is "not the current branch or commit"?

asked 2011-07-17 23:56:59 -0500

updated 2011-07-17 23:58:23 -0500

I cannot update git repositories using rosinstall. I do the first installation by running:

rosinstall ~/ros-test mytest.rosinstall

This completes without error. When I try to update by running:

rosinstall ~/ros-test

... I get:

The version  of repo 
requested to be checked out into /tmp/rosinstall-test/uos-ros-pkg is not the 
current branch or commit and cannot be blindly updated in place. 
(d)elete, (a)bort, (b)ackup, (s)kip:

This is the rosinstall file I use:

- other:
    local-name: /opt/ros/diamondback/ros
- other:
    local-name: /opt/ros/diamondback/stacks
- git:
    local-name: uos-ros-pkg

This only happens with git repositories, svn works just fine. We don't use any black magic such as submodules. I'm using rosinstall version 0.5.16. The repo is public, so you can reproduce the error. Any ideas? Should I file a ticket?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2011-07-18 02:39:11 -0500

Lorenz gravatar image

This is actually expected behavior. When using distributed version control systems, you need to specify a branch name, tag name or some other id to make rosinstall behave. Just have a look at the rosinstall wiki page here.

In your specific case, use:

- git:
    local-name: uos-ros-pkg
    version: master
edit flag offensive delete link more


Thanks, Lorenz! That did it.
Martin Günther gravatar image Martin Günther  ( 2011-07-18 02:56:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-07-17 23:56:59 -0500

Seen: 1,084 times

Last updated: Jul 18 '11