Subject: Re: GIT+CYGWIN annoying test failure

From: SungHyun Nam <[email-masked]>
Date: Fri, 16 Feb 2007 09:04:14 +0900

Hello,

Johannes Schindelin wrote:
> 
> 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