ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

[ERROR] fatal: cannot exec 'fetch-pack': Argument list too long

asked 2013-08-02 09:25:00 -0500

LuisGIII gravatar image

updated 2013-08-02 09:26:47 -0500

Hi everybody, I'm a ROS newbie and I'm trying to build it since a few days ago. First I tried in a VM with CrunchBang #! but it had a lot of errors. Now I'm trying in my native OS (Snow Leopard), and I'm having a bunch of errors trying to build even the bare bones distribution.

fatal: cannot exec 'fetch-pack': Argument list too long

I understand that's an error of git, but I mean I'm having 3 pages of errors so I can't build ROS as it should be.

Hope somebody can help me a bit to find a solution. Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-10 20:18:10 -0500

acarrillo gravatar image

I have struck upon a workaround. The error you are experiencing occurs because of the way that Git handles smart HTTP (read for a good explanation).

This issue exists only when Git uses Smart HTTP, which is the default choice that rosinstall_generator makes for you when it generates a .rosinstall file. By changing:

uri: <a href="">



for each affected item in your .rosinstall file, Git will use SSH to clone the source repositories instead, which apparently does not create problems for your terminal's argument buffer.

Simply replace-all to in your favorite text editor (sed included), and you should be all set.

edit flag offensive delete link more

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: 2013-08-02 09:25:00 -0500

Seen: 867 times

Last updated: Oct 10 '13