anchor.diff:  	if(!instance_name)
   		instance_name = "TG Station Server" //maybe just upgraded
   
  -	var/list/logs = file2list(".git/logs/HEAD")
  +	var/list/logs = TGS_FILE2LIST(".git/logs/HEAD")
   	if(logs.len)
  -		logs = splittext(logs[logs.len - 1], " ")
  -		commit = logs[2]
  -	logs = file2list(".git/logs/refs/remotes/origin/master")
  +		logs = splittext(logs[logs.len], " ")
  +		if (logs.len >= 2)
  +			commit = logs[2]
  +		else
  +			TGS_ERROR_LOG("Error parsing commit logs")
  +	
  +	logs = TGS_FILE2LIST(".git/logs/refs/remotes/origin/master")
   	if(logs.len)
  -		originmastercommit = splittext(logs[logs.len - 1], " ")[2]
  +		logs = splittext(logs[logs.len], " ")
  +		if (logs.len >= 2)
  +			originmastercommit = logs[2]
  +		else
  +			TGS_ERROR_LOG("Error parsing origin commmit logs")
   
   	if(world.system_type != MS_WINDOWS)
   		TGS_ERROR_LOG("This API version is only supported on Windows. Not running on Windows. Aborting initialization!")
  
positive.code: #define SERVICE_REQUEST_API_VERSION "api_ver"
  
  #define SERVICE_RETURN_SUCCESS "SUCCESS"
  
  /datum/tgs_api/v3210
  	var/reboot_mode = REBOOT_MODE_NORMAL
  
negative.code: #undef SERVICE_REQUEST_API_VERSION
  
  #undef SERVICE_RETURN_SUCCESS
  
  #undef TGS_FILE2LIST
  