MATLAB Answers

Simulink Project Git error with Bitbucket git: git: cannot open git-receive-pack

68 views (last 30 days)
Dave Walter
Dave Walter on 13 Jan 2016
Edited: James Marriott on 10 Sep 2018
We recently transition to BitBucket for our source control needs. Simulink Project shows a dialog box error when using those git operations on our bitbucket server -
When selecting "Push" in Simulink Project the dialog error displays:
git: cannot open git-receive-pack
When selecting "Fetch" in Simulink Project the dialog error displays:
git: cannot open git-upload-pack
fetch,push, and pull work perfect from the BASH command line.

  5 Comments

Show 2 older comments
Dave Walter
Dave Walter on 1 Mar 2018
I haven't been seeing this issue anymore and i'm not sure what I did to solve it. We've since upgraded from 2015b to 2017a. We also use ssh for the repo link as opposed to https.
SteveC
SteveC on 11 May 2018
I'm dealing with this problem as well, and unfortunately I can't use SSH, only the HTTPS link. I'm behind a proxy, but all the proxy settings in Matlab and Git are set.
James Marriott
James Marriott on 10 Sep 2018
Has anyone reported this bug(?) to mathworks. I am having the same issue. Again I am using https authentication.

Sign in to comment.

Answers (1)

Dave Walter
Dave Walter on 1 Mar 2018
I think you can work around this issue by using an ssh link to clone your repositories as opposed to https. See the following link to set up ssh:
It may have been fixed in newer version of matlab (2017a and later)

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!