zsh-histdb icon indicating copy to clipboard operation
zsh-histdb copied to clipboard

histdb-sync commits to git repo in parent dir

Open diamond-lizard opened this issue 7 years ago • 1 comments

If a parent directory of $hist_dir contains a git repo, the first time histdb-sync runs, it'll try to commit to that repo, since the "git rev-parse --is-inside-work-tree" test will return true even if there's no git repo in $hist_dir itself.

Perhaps a simple test for the non-existence of a .git directory in $hist_dir would be more appropriate.

diamond-lizard avatar Aug 20 '17 05:08 diamond-lizard

fixed this issue in pr #21

LlinksRechts avatar Sep 29 '17 10:09 LlinksRechts