Fix return value in match_commits

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Fix initial commit checking in match_commit

Signed-off-by: Joerg Roedel <jroedel@suse.de>