You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Git-semver fails when launched from a subdirectory, wherease git describe succeeds.
Steps to reproduce
mkdir -p test/foo
cdtest
git init
touch foo/bar
git add foo/bar
git commit -m"init"
git tag -a 0.1.0 -m"release"cd foo
git describe
# 0.1.0
git-semver
# failed to open repo: repository does not exist
Fix
I will PR later, but I think the problem lies here. According to this post, you should call git.PlainOpenWithOptions instead of git.PlainOpen. The option structure is declared here and should have the attribute DetectDotGit set to true.
The text was updated successfully, but these errors were encountered:
Description
Git-semver fails when launched from a subdirectory, wherease
git describe
succeeds.Steps to reproduce
Fix
I will PR later, but I think the problem lies here. According to this post, you should call
git.PlainOpenWithOptions
instead ofgit.PlainOpen
. The option structure is declared here and should have the attributeDetectDotGit
set to true.The text was updated successfully, but these errors were encountered: