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

Can't commit with git-secrets #178

Open
zarsky-broad opened this issue Jan 18, 2019 · 2 comments
Open

Can't commit with git-secrets #178

zarsky-broad opened this issue Jan 18, 2019 · 2 comments
Labels

Comments

@zarsky-broad
Copy link

Description

Git-secrets fails to run (I think because it can't find git-sh-setup).
Specifically, the error raised points to line 46, and the built-in git has a weird exec-path:

$ /Applications/GitHub\ Desktop.app/Contents/Resources/app/git/bin/git --exec-path
//libexec/git-core

Version

  • GitHub Desktop: 1.6.0
  • Operating system: macOS 10.13.6 (17G4015)

Steps to Reproduce

Set up git-secrets in a repo, then try to commit any file.

Expected Behavior

Commit succeeds.

Actual Behavior

Commit fails with error No such file or directory.

Additional Information

Logs

2019-01-18T22:18:28.902Z - error: [ui] `git commit -F -` exited with an unexpected code: 1.
/usr/local/bin/git-secrets
/usr/local/bin/git-secrets: line 46: /Applications/GitHub: No such file or directory
@shiftkey
Copy link
Member

@zarsky-broad thanks for the report!

This is the same root cause as #164 and needs to be addressed in the embedded Git. I'm going to move this over the related project so we can track it there.

@shiftkey shiftkey transferred this issue from desktop/desktop Jan 20, 2019
@shiftkey shiftkey added the bug label Jan 20, 2019
@hackbom

This comment was marked as off-topic.

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

No branches or pull requests

3 participants