greedy-deps-tests: fix the git rev determination

rev-parse just resolves the symbolic reference, it doesn't give us what we
need, so use rev-list with the path for that.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>