gitflow-avh
gitflow-avh copied to clipboard
git flow hooks in windows
Are the git-flow hooks running on windows?
I think there is a problem on gitflow-common that invokes the hooks
run_filter_hook() {
local command scriptfile return
command=$1
shift
scriptfile="${HOOKS_DIR}/filter-flow-${command}"
if [ -x "$scriptfile" ]; then
return=`$scriptfile "$@"`
if [ $? -eq 127 ]; then
echo "$return"
exit 127
fi
echo $return
else
echo "$@"
fi
}
the scriptfile var will yeild something like c:\somedir\.git\hooks and then the if [ -x "$scriptfile" ] that checks if the file exists will fail.