gitflow-avh icon indicating copy to clipboard operation
gitflow-avh copied to clipboard

git flow hooks in windows

Open joaomatossilva opened this issue 7 years ago • 0 comments

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.

joaomatossilva avatar Oct 18 '18 13:10 joaomatossilva