From 458e51295dcc1b5e3265c3c9c8b65e0a5b22c1d6 Mon Sep 17 00:00:00 2001 From: Marko Malenic Date: Wed, 19 Feb 2025 16:37:58 +1100 Subject: [PATCH] fix: the manifest path should be set when using an existing git directory --- LICENSE | 2 +- src/cargo.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index c3ddd72..919f9d7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2024 David Calavera +Copyright (c) 2025 David Calavera Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/cargo.ts b/src/cargo.ts index b1429b0..f24bc2e 100644 --- a/src/cargo.ts +++ b/src/cargo.ts @@ -64,10 +64,10 @@ export function getManifestPath(project: CargoProject): string { if (gitReference !== 'HEAD') { exec('git', ['checkout', gitReference], { cwd: localPath }); } - - // Append Cargo.toml to the path - manifestPath = join(localPath, defaultManifestPath); } + + // Append Cargo.toml to the path + manifestPath = join(localPath, defaultManifestPath); } let manifestPathResult;