cksource / mrgit

A tool for managing projects build using multiple repositories.
49 stars 9 forks source link

The status command fails when a repository has no tag #157

Closed pomek closed 1 year ago

pomek commented 1 year ago

📝 Provide detailed reproduction steps (if any)

  1. Create a mrgit.json configuration file containing a repository with no tags.
  2. mrgit sync
  3. mrgit st

✔️ Expected result

No errors.

❌ Actual result

❓ Possible solution

If a repository has no tags, we should not match anything. Not sure it helps 😄

pomek commented 1 year ago

Also, another case. If the repository uses the @latest tag, but there are no tags, it should not blow up. Instead, use the default branch and print a warning that the @latest tag could not be matched because the repository does not have tags.