-
Notifications
You must be signed in to change notification settings - Fork 102
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
Cannot detect transcrypt repo #166
Comments
Disable colors when doing grep
Hi, I assume this problem is occurring because you are using Another option would be to use the |
With some trial and error I have reproduced this problem by setting the environment variable With that envvar set I see the same error as reported. Adding this line near the top of the transcrypt file fixes it for me, can you confirm whether it solves the problem for you too?
If this works I'd be happy to add it to transcrypt as a work-around for problematic global settings, since it is a more broadly compatible approach than the one in PR #167 |
I was trying same approach since I was also thinking if doing in bit different way, since grep matching the first part, then if
and the comparison
|
I have applied a fix for this in commit #a825f9de0b16084b5e279cf9deaba23ade333b85 |
* main: Add instructions for installation on FreeBSD (#168) Fix linting failure for fix of #166 Prevent global options in `GREP_OPTIONS` envvar from breaking transcript. Fixes #166 Remove no longer supported Ubuntu 18.04 version from test matrix Fix mistaken warnings when transcrypt's pre-commit hook is re-installed, e.g. for multiple contexts
Get error
transcrypt: the current repository is not configured
usingtranscrypt --display
commandIt seems that it caused when
grep
is set globally to use colors, then the comparison from get_contexts_from_git_config() the[[ "$name" = "transcrypt.password" ]]
do not work since it compare colorized than non-colorized stringThe text was updated successfully, but these errors were encountered: