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

GIT_ARGS NOT WORKING #82

Closed
jupegarnica opened this issue Oct 1, 2021 · 9 comments
Closed

GIT_ARGS NOT WORKING #82

jupegarnica opened this issue Oct 1, 2021 · 9 comments

Comments

@jupegarnica
Copy link

I believe GIT_ARGS env is not set properly. Looks totally empty used at gitHook commit-msg

image

@jupegarnica
Copy link
Author

I am working on ubuntu 21.04, and zsh-. but also happens in bash and sh.

@umbopepato
Copy link
Member

Hi @jupegarnica!
What version of Velociraptor are you using?

@jupegarnica
Copy link
Author

@umbopepato The last one 1.2.0

@jupegarnica
Copy link
Author

and deno 1.14.0

@umbopepato
Copy link
Member

Can you please try and set the VR_LOG env variable to "DEBUG" and share the output of the commitlint hook script?

@jupegarnica
Copy link
Author

@umbopepato sure!, here it is:

image

hope is useful

@umbopepato
Copy link
Member

Ok so it looks like the GIT_ARGS variable is properly set. What about

$ cat .git/hooks/commit-msg

?

@jupegarnica
Copy link
Author

@umbopepato do you mean this?

image

@umbopepato
Copy link
Member

umbopepato commented Oct 23, 2021

@jupegarnica the first git CLI argument was not forwarded correctly to the script. The fix will be merged and released shortly but in the meantime you can test it by installing vr from the develop branch:

$ deno install --reload -qAfn vr https://raw.githubusercontent.com/jurassiscripts/velociraptor/develop/cli.ts

Thanks for reporting this! 🙂

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

2 participants