Moving git extraction calls to top of script.