Skip to content

Commit 76c42ae

Browse files
committed
3666: Ensure git data cleanup if result change
1 parent 468e86e commit 76c42ae

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Handler/GitHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ public function handleResult(DetectionResult $detectionResult): void
3333
{
3434
try {
3535
$data = $this->getData($detectionResult);
36+
$installation = $this->installationFactory->getInstallation($detectionResult);
3637

3738
if (null === $data) {
39+
$installation->setGitTag(null);
40+
3841
return;
3942
}
4043

41-
$installation = $this->installationFactory->getInstallation($detectionResult);
42-
4344
$this->gitCloneFactory->setGitCloneData($installation, $data);
4445
} catch (\JsonException) {
4546
// @TODO log exceptions

0 commit comments

Comments
 (0)