Use git dir variable set at beginning of script.