Fixed potential bug in gitupdate.php