-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
how to get git params #71
Comments
hi @Leslie2014, Git params are passed in "prepush": "node prepush.js" // prepush.js
console.log(process.env.GIT_PARAMS) I'll update the README :) |
Thanks! : ) |
Hi @typicode , I know this issue is closed but I ran into this same situation and it doesn't work like your answer. I also try #113 (comment) but to no avail. Of course I knew that |
I have the same issue as @ghun131 and didn't find any workaround yet. |
hi.
i want to prevent git push when branch name match the regular expression.
so, the question is, how can i get the command cli param.
e.g: git push publish/0.0.4, the string 'publish/0.0.4' is what is want.
The text was updated successfully, but these errors were encountered: