I’m having trouble correlating the title with the details in this thread, so maybe this can be clarified a bit? Phrasing questions in the format of steps to reproduce / expected result / actual result are preferred since it makes it easier for us to troubleshoot and offer assistance.
Getting old commit hash
Is this related to pull requests? If yes, I recommend the below threads which provide some background and workarounds.
[1] Pipeline Event Merge Requests w/GitLab
[2] http://discuss.harness.io/t/solved-clone-from-git-not-reflecting-change-in-commit/818
[3] Edit a ZeroNorth Ruleset