jurassiscripts / velociraptor

The npm-style script runner for Deno

Home Page:https://velociraptor.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GIT_ARGS NOT WORKING

jupegarnica opened this issue · comments

commented

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

image

commented

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

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

commented

@umbopepato The last one 1.2.0

commented

and deno 1.14.0

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

commented

@umbopepato sure!, here it is:

image

hope is useful

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

$ cat .git/hooks/commit-msg

?

commented

@umbopepato do you mean this?

image

@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! 🙂