	public function LoadContainingTag($commit)
	{
		if (!$commit)
			return;

		$args = array();
		$args[] = '--tags';
		$args[] = $commit->GetHash();
		$revs = explode("\n", $this->exe->Execute($commit->GetProject()->GetPath(), GIT_NAME_REV, $args));

		foreach ($revs as $revline) {
			if (preg_match('/^([0-9a-fA-F]{40})\s+tags\/(.+)(\^[0-9]+|\~[0-9]+)$/', $revline, $regs)) {
				if ($regs[1] == $commit->GetHash()) {
					return $regs[2];
				}
			}
		}
	}
The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.