stevenjack / cig

Can I go? Checks all your git repos, reporting if any of them have changes or need to be pushed.
MIT License
83 stars 10 forks source link

Detached HEAD will show a change (P), even if there is nothing different #40

Closed arielsalvo closed 1 year ago

arielsalvo commented 7 years ago

Hi!

I'm currently using cig in my development and it behaves quite nicely except with detached HEADs. Terraform can get dependencies via a checkout and in some instances, it may result in a detached HEAD.

I think this could be detected in this line: https://github.com/stevenjack/cig/blob/master/repo/repo.go#L56 I don't think my skills in GO are enough to fix it, though.

Regards! --Ariel

stevenjack commented 7 years ago

hey @arielsalvo, glad the tool is useful for you! I'll take a look over the weekend and see if I can get a PR up for it.