fix bug when reading pull sha on first load
reindent