-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
git-secret (rpm) - .gitsecret folder is ignored. abort. #105
Comments
Thanks! A pr maybe? Would be so nice! |
@sobolevn with pleasure but I didn't found this code snippet here in this repo? :) |
@rsguhr If you notice towards the bottom git check-ignore returns 1 when none of the paths provided are ignored. Meaning the git secret should abort when equal to 0 or when it is not equal to 1. |
Hi @hurricanehrndz,
In the last one, I found this StackOverflow thread about that topic: https://stackoverflow.com/questions/45210790/how-to-reliably-check-whether-a-file-is-ignored-by-git Maybe you should rather use My git version:
|
What version of git are you using? |
@hurricanehrndz |
You can verify this by running the following:
|
Try this: https://github.com/hurricanehrndz/git-secret/tree/issue105 |
@hurricanehrndz |
@hurricanehrndz @rsguhr thanks! |
I left a solution for this in #104, but just in case people are reading this thread in the future: I was getting this every time I tried to init git secret on a Windows machine (with WSL). The error was caused by my .gitignore file being in the wrong file format. I fixed it by using the dos2unix tool ( |
For any other future googlers: this error can also occur if you don't have read permissions on some of git-secret's files. Fix by doing |
What are the steps to reproduce this issue?
What happens?
If you tries to encrypt your data with git-secret hide, it will produces this output:
.gitsecret folder is ignored. abort.
What were you expecting to happen?
git-secrets encrypt my added files
Any logs, error output, etc?
.gitsecret folder is ignored. abort.
Any other comments?
This issue happens only in the rpm version because this line is incorrect:
It should be $ignored -eq 0
PS: You could also change .gitsecret to the variable $SECRETS_DIR.
PS2: This is not fixed by this merge #103
What versions of software are you using?
Operating system: (
uname -a
) …Linux xxx 4.12.5-300.fc26.x86_64 #1 SMP Mon Aug 7 15:27:25 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
git-secret
path: (which git-secret
) …/usr/bin/git-secret
git-secret
version: (git secret --version
) …0.2.2
Shell type and version: (
$SHELL --version
) …GNU bash, version 4.4.12
gpg
version: (gpg --version
) …gpg (GnuPG) 1.4.22
The text was updated successfully, but these errors were encountered: