markchalloner / git-semver

Git plugin for Semantic Versioning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Config file and plugins in the same repo

srt4rulez opened this issue · comments

You cannot have both a local config file and a plugins directory in the same repo.

git-semver/git-semver.sh

Lines 350 to 353 in 4a00f79

if [ -f "${DIR_ROOT}/.git-semver" ]
then
FILE_CONF="${DIR_ROOT}/.git-semver"
source "${FILE_CONF}"

This line above checks for a .git-semver file for the config, while the code below looks for the .git-semver/plugins directory:

plugin_dir="${dirs[${i}]}/.git-semver/plugins"

Maybe I'm missing something, but you can't have a file be a folder.