[X2Go-Dev] Bug#858: fix top Git commit detection on branch/tag