Re: GIT+CYGWIN annoying test failure
- From
- SungHyun Nam <goweol@gmail.com>
- Date
- Feb 16, 2007, 00:04 UTC
- Message-ID
- <45D4F4FE.3010405@gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0702150236590.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Hello,
Johannes Schindelin wrote:
Show 11 quoted lines
>
> On Thu, 15 Feb 2007, SungHyun Nam wrote:
>
>> check_result () {
>> + [ -r current ] && rm -f current
>> git-ls-files --stage | sed -e 's/ '"$_x40"' / X /' >current &&
>> diff -u expected current
>> }
>
> Are you having a restrictive umask, or what are the permissions on that
> file?There's no problem with the umask.
$ umask 0022
I guess there is some race condition in CYGWIN or windows. And my system triggers that condition.
Check the logic above. I cannot think there is any chance that 'rm -f current && echo x >current' is success, but 'echo x >current' is fail?
Thanks, namsh