Added hiding of loading gif if there are no commits