From 926005cf2b2f59f2831c4c292da90d0e136b7c4c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 16 Sep 2017 19:41:33 -0300 Subject: Misc fixes --- hit | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'hit') diff --git a/hit b/hit index 7f24226..c49e69c 100755 --- a/hit +++ b/hit @@ -5,15 +5,17 @@ # Main features: # # * Disables/mitigates hooks by changing permission and ownership on `~/.git/hooks`. +# * Runs git through firejail if it's available. # # Other features to consider: # -# * Checks proper user/email config. -# * Automatically sets git-flow when initializing a repository. -# * Automatically sets git-hooks integration. -# * Implements global hooks. -# * Checks remote configuration. -# * Checks hook tampering before doing anything in the repository, like removing hook permissions +# * Check proper user/email config. +# * Automatically set git-flow when initializing a repository. +# * Automatically set git-hooks integration. +# * Allow hook whitelisting. +# * Implement global hooks like using a global init.templateDir config. +# * Check remote configuration. +# * Check hook tampering before doing anything in the repository, like removing hook permissions. # Parameters BASENAME="`basename $0`" @@ -53,4 +55,5 @@ fi # # Call git # -$GIT $* +# https://stackoverflow.com/questions/1668649/how-to-keep-quotes-in-args/1669548#1669548 +$GIT "$@" -- cgit v1.2.3