Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 5f641fa

Browse files
committed
fix(config): Home path not expanded
The home path was not being expanded to correctly locate the home path on the machine. This meant the history was created for every directory that the user ran the tool in. Fixes #46
1 parent b2693b0 commit 5f641fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gitcommit/gitcommit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
from gitcommit.utils import capitaliseFirst
4343
from gitcommit.style import style
4444

45-
CONFIG_HOME_DIR = "~/.gitcommit/"
45+
home = os.path.expanduser("~")
46+
CONFIG_HOME_DIR = os.path.join(home, ".gitcommit/")
4647

4748
IS_BREAKING_CHANGE = None # default for global variable
4849
try:

0 commit comments

Comments
 (0)