From: Randal L. Schwartz Date: Sun, 29 Apr 2007 01:36:33 GMT Subject: Re: [PATCH] import-tars: be nice to wrong directory modes Message-ID: <86tzv07yhq.fsf@blue.stonehenge.com> In-Reply-To: >>>>> "Johannes" == Johannes Schindelin writes: Johannes> + next if $name =~ '/$'; This is misleading. That's a regex there. And it also falsely matches a string ending in "/\n", but I bet there are parts of git that break on those filenames too. :) Consider: next if $name =~ m{/\z}; which matches precisely when the filename ends in /. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!