Closed aaronjensen closed 6 years ago
What's the return of magithub--url->repo
for each of those URLs? (I'd try myself, but I won't really be home until the weekend ☹️)
I bet #195 is related.
origin -> ((owner (login . "org")) (name . "my-app"))
heroku -> nil
And yea, #195 looks very similar.
And (magithub-repo-remotes-for-repo '((owner (login . "org")) (name . "my-app")))
returns ("heroku" "origin")
?
Due to how magithub-repo-from-remote
works, I think I'm getting false positives. Any chance you could provide my with the real URLs?
@vermiculus yes, it returns ("heroku" "origin")
. I emailed you the urls.
With those URLs, I was able to find the problem! Thanks again.
Here's an updated definition for magithub-repo-from-remote
:
(defun magithub-repo-from-remote (remote)
(when-let* ((repo (magithub-repo-from-remote--sparse remote)))
(magithub-repo repo)))
Ping for @aspiers and @justinweiss -- can you try out the definition above to see if this will also fix #195?
Thanks, that seems to work for me.
I'm not sure of the exact repro or issue, but here's what I've found. If I select "origin" from
magithub-read-repo
thenmagithub-repo-remotes-for-repo
will return("heroku" "origin")
which is incorrect.My remotes look something like this:
The tests in here seem to pass: