ARMmbed / yotta

DEPRECATED: yotta build; better software
Apache License 2.0
164 stars 64 forks source link

Implement tipVersion for git repos #780

Closed Timmmm closed 7 years ago

Timmmm commented 8 years ago

Without this change, using non-github git repos as dependencies hits this function and crashes if they don't have any tags.

For example if you create a local yotta repo without tags, and then specify it as a dependency like this then it crashes:

dependencies: { "../mylib/.git" }

Note that I don't fully understand the code so it would benefit from review by someone more familiar. I wrote this patch by comparison with github_access.py. I have tested it and it works though.

thegecko commented 7 years ago

@Timmmm Thanks!