alpine-docker / git

A useful simple git container running in alpine linux, especially for tiny linux distro, such as RancherOS, which don't have package manager.
Apache License 2.0
155 stars 86 forks source link

Git log returns no output when performing revision selection #22

Closed oyebayo closed 4 years ago

oyebayo commented 4 years ago

When executing a revision selection with git on alpine, the output is always nothing. For example git log master..experiment always returns nothing. Similarly, git log ^master experiment returns nothing. Other git log commands work as expected

This seems to be peculiar to alpine, as I can see this behaviour even in the latest version (Alpine 3.12, git 2.26.2)

ozbillwang commented 4 years ago

did you checkout the branch experiment before you run the command?

oyebayo commented 4 years ago

I can see that that was the issue, @ozbillwang. I am using alpine docker images in my CI pipeline and comparing two branches. Prefixing them both with "origin" gave me the expected result. Thank you.