Skip to content

Conversation

@sommersoft
Copy link
Collaborator

Found this while looking into adafruit/adabot#181.

@sommersoft sommersoft requested a review from a team August 16, 2020 23:17
@ladyada
Copy link
Member

ladyada commented Aug 17, 2020

thanx!

@ladyada ladyada merged commit 5bcdded into adafruit:master Aug 17, 2020
Copy link
Contributor

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both work as clone URLS with my version of git, but the new form is the one that github suggests when cloning via HTTP

@sommersoft
Copy link
Collaborator Author

Both work as clone URLS with my version of git, but the new form is the one that github suggests when cloning via HTTP

The "malformation" was more about Adabot parsing the repo name from the .gitmodules entry, for the referenced issue. Git/GitHub will gladly re-direct with .git, /, and no ending in the URL. Apologies if use of "malformed" was the wrong term to use.

@jepler
Copy link
Contributor

jepler commented Aug 17, 2020

@Gadgetoid No action required on your part, but I wanted to call your attention to this. It turns out submodule URLs need to be in a specific format when adding to the bundle.

@jepler
Copy link
Contributor

jepler commented Aug 17, 2020

@sommersoft Sorry, I didn't realize how pedantic what I was saying was. I also didn't realize it actually fixed the problem. Thanks!

@Gadgetoid
Copy link
Contributor

Oooof - trust me to come bumbling in and break something! Achknowledged, thank you.

Is there any way to lint for this? It's the sort of thing I'm going to do so infrequently that I'll - if I'm being honest with myself - almost certainly make the same mistake again.

@sommersoft
Copy link
Collaborator Author

Just now seeing the replies.

Sorry, I didn't realize how pedantic what I was saying was. I also didn't realize it actually fixed the problem. Thanks!

No worries, @jepler! As I said, my terminology/explanation could've been much better. 😄

Oooof - trust me to come bumbling in and break something! Achknowledged, thank you.
Is there any way to lint for this? It's the sort of thing I'm going to do so infrequently that I'll - if I'm being honest with myself - almost certainly make the same mistake again.

@Gadgetoid, breaking things is my whole approach. 😄 A linter/test could probably be worked up. Or, maybe Adabot could be more aware of different submodule URL formats, and handle all the ones that git/GitHub accept. The trailing / was the only issue, really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants