public function CurrentBuild() {
		// The DeployHistory function is far too slow to use for this
		$deploy = DNDeployment::get()->filter(array('EnvironmentID' => $this->ID, 'Status' => 'Finished'))->sort('LastEdited DESC')->first();

		if (!$deploy || (!$deploy->SHA)) {
			return false;
		}

		$repo = $this->Project()->getRepository();
		if (!$repo) {
			return $deploy;
		}

		try {
			$commit = $repo->getCommit($deploy->SHA);
			if ($commit) {
				$deploy->Message = Convert::raw2xml($commit->getMessage());
			}
			// We can't find this SHA, so we ignore adding a commit message to the deployment
		} catch (Exception $ex) { }

		return $deploy;
	}