0

I am trying to download my git repository off of heroku using

heroku git:clone -a my_app

but am given the error

ENOENT: spawn git ENOENT

I read online that this error happens because git was not detected by heroku-cli, but I have git installed. How can I get heroku-cli to detect my git installation? If it's useful, I installed heroku-cli through snap and have installed git through apt-get, and I run ubuntu 17.04 lts.

user1876508
  • 12,864
  • 21
  • 68
  • 105

1 Answers1

0

It turns out this is a bug with snap. Running

sudo snap remove heroku

and

wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh

solves the problem.

user1876508
  • 12,864
  • 21
  • 68
  • 105