Re: [PATCH] Fix a test failure (t9500-*.sh) on cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxx> writes:

> A fix requires noting the new file execute permission in the
> index with a "git update-index --chmod=+x", prior to the commit.
> Add a function (note_chmod) which implements this idea, and
> insert a call in each test that modifies the x permission.

Thanks.  I think you probably could even do

> +note_chmod () {

	chmod "$1" "$2"

> +	if [ "$(git config --get core.filemode)" = false ]
> +	then
> +		git update-index --chmod=$1 $2
> +	fi
> +	return 0
> +}



-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux