git: fatal error: `chdir’ failed: permission denied.

Trying to use the heroku gem to clone a project and do local modifications I got the following error:

It turns out that in Mandriva, when using:

what gets installed is the ‘GNU Interactive Tools’ that has nothing to do with the git version control system.
So make sure you first uninstall the git installed:

and then install the Git – Fast version control system, by doing:

You should then be able to clone a heroku application: