Skip to content

Commit 9f0e10c

Browse files
authored
fix: the manifest path should be set when using an existing git directory (#74)
1 parent 91d5dd6 commit 9f0e10c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cargo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export function getManifestPath(project: CargoProject): string {
6464
if (gitReference !== 'HEAD') {
6565
exec('git', ['checkout', gitReference], { cwd: localPath });
6666
}
67-
68-
// Append Cargo.toml to the path
69-
manifestPath = join(localPath, defaultManifestPath);
7067
}
68+
69+
// Append Cargo.toml to the path
70+
manifestPath = join(localPath, defaultManifestPath);
7171
}
7272

7373
let manifestPathResult;

0 commit comments

Comments
 (0)