From 6cc13bcfa4932595afcc4afa1567f4b34d956e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=BB=E6=83=B3?= Date: Tue, 9 Jan 2024 22:57:09 +0800 Subject: [PATCH] fix(services/chain): .git in parent dir (#3869) --- changelog.md | 1 + ignite/pkg/repoversion/repoversion.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index b48292ba56..5db8239aac 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ ### Fixes - [#3867](https://github.com/ignite/cli/pull/3867) Fix genesis export for ibc modules. +- [#3869](https://github.com/ignite/cli/pull/3869) Fix .git in parent dir ## [`v28.1.0`](https://github.com/ignite/cli/releases/tag/v28.1.0) diff --git a/ignite/pkg/repoversion/repoversion.go b/ignite/pkg/repoversion/repoversion.go index c5b31a2c14..4428a5d41b 100644 --- a/ignite/pkg/repoversion/repoversion.go +++ b/ignite/pkg/repoversion/repoversion.go @@ -15,7 +15,7 @@ type Version struct { } func Determine(path string) (v Version, err error) { - repo, err := git.PlainOpen(path) + repo, err := git.PlainOpenWithOptions(path, &git.PlainOpenOptions{DetectDotGit: true}) if err != nil { return Version{}, err }