Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Better error messages for directories without .gitsecret #150

Closed
joshrabinowitz opened this issue Apr 17, 2018 · 2 comments

Comments

@joshrabinowitz
Copy link
Collaborator

Currently if you run a git-secret command in an arbitrary directory, you get the error:

% git secret list
'/home/joshr/gitsrc/git-secret/.gitsecret' is ignored. abort.

It would be more user friendly to tell the user a nicer message.

@joshrabinowitz
Copy link
Collaborator Author

See #151

@joshrabinowitz
Copy link
Collaborator Author

This now reports:

if in a git repo without .gitsecret:

git-secret: abort: directory '.gitsecret' does not exist. Use 'git secret init' to initialize git-secret

If in a non-git-repo directory:

git-secret: abort: not in dir with git repo. Use 'git init' or 'git clone', then in repo use 'git secret init'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant