Straight.el: Cloning repository with nonstandard URL fails

Created on 11 Oct 2017  路  2Comments  路  Source: raxod502/straight.el

Current behavior: Recipe for matlab-mode involves a repo URL that ends in matlab-mode/src, resulting in straight-vc-git-clone cloning to a directory called src rather than matlab-mode as expected. This causes the subsequent directory change to local-repo to fail.

Expected behavior: Clone matlab-mode to local-repo or some other consistent naming scheme, avoiding any idiosyncrasies in the git URL.

Suggested fix: In straight-vc-git-clone change

 (straight--get-call
             "git" "clone" "--origin"
             straight-vc-git-primary-remote
             "--no-checkout" url)

to

  (straight--get-call
             "git" "clone" "--origin"
             straight-vc-git-primary-remote
             "--no-checkout" url local-repo)

This solved my problem in the case of matlab-mode, though I am still getting a message Cannot load matlab-mode despite the fact that it seemingly loads just fine.

bug

Most helpful comment

All 2 comments

FWIW, this fixed my issue, thanks! =)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

enko picture enko  路  4Comments

Fuco1 picture Fuco1  路  3Comments

rsbowman picture rsbowman  路  3Comments

raxod502 picture raxod502  路  3Comments

yqrashawn picture yqrashawn  路  3Comments