2
$\begingroup$

I want to overwrite the git source of a package in autoproj. That package is by default on gitorious and I forked it on spacegit to apply specific patches. According to the autoproj documentation (http://rock-robotics.org/stable/documentation/autoproj/customization.html), I set the new repo in the overrides.yml by:

  - control/orogen/<package>:
    url: git://spacegit.dfki.uni-bremen.de/virgo/orogen-<package>.git

But if I inspect the remotes of the newly checked out package, only the fetch url is adapted to spacegit whereas the push url still points to the default gitorious repo:

$ git remote -v
autobuild   git://spacegit.dfki.uni-bremen.de/<project>/orogen-<package>.git (fetch)
autobuild   gi[email protected]:/rock-control/orogen-<package>.git (push)

How can I overwrite both the fetch and the push source of a package in the overrides.yml?

$\endgroup$
4
  • $\begingroup$ This is not a robotics-related question. Please try a software related stackexchange such as stackoverflow or programming.stackexchange. $\endgroup$ Jun 12, 2014 at 17:27
  • 1
    $\begingroup$ This question appears to be off-topic because it is about managing a GIT repository $\endgroup$ Jun 12, 2014 at 17:28
  • $\begingroup$ autoproj being the build system of a robotics framework (rock-robotics.org), and since the question is tagged properly, it is IMO relevant here. $\endgroup$ Jun 24, 2014 at 11:43
  • $\begingroup$ This is not a question about robotics, it is a question about a build system which happens to contain code related to robotics. While I'm happy for this to remain here since it already has an accepted answer, git questions are more likely to be answered more comprehensively on Stack Overflow. $\endgroup$
    – Mark Booth
    Aug 18, 2014 at 16:35

1 Answer 1

2
$\begingroup$

You missed the part that autobuild can separate between push and pull urls.

See documentation at http://rock-robotics.org/next/api/autobuild/Autobuild/Git.html

The Gitorious statement automatically set the push_to url, see here: http://rock-robotics.org/next/api/autoproj/Autoproj.html#method-c-gitorious_server_configuration

everything you have to do is add:

- control/orogen/<package>:
  url: git://spacegit.dfki.uni-bremen.de/virgo/orogen-<package>.git
  push_to: g[email protected]:virgo/orogen-<package>.git
$\endgroup$
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.