From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: [PATCH 0/3] minor fixes to some svn tests Date: Fri, 13 May 2016 15:47:16 -0400 Message-ID: <20160513194716.GA9806@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Armin Kunaschik , Eric Wong , Junio C Hamano To: Git List X-From: git-owner@vger.kernel.org Fri May 13 21:47:24 2016 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b1J3U-00067c-8M for gcvg-git-2@plane.gmane.org; Fri, 13 May 2016 21:47:24 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932313AbcEMTrU (ORCPT ); Fri, 13 May 2016 15:47:20 -0400 Received: from cloud.peff.net ([50.56.180.127]:39290 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932165AbcEMTrU (ORCPT ); Fri, 13 May 2016 15:47:20 -0400 Received: (qmail 13880 invoked by uid 102); 13 May 2016 19:47:19 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.84) with SMTP; Fri, 13 May 2016 15:47:19 -0400 Received: (qmail 21033 invoked by uid 107); 13 May 2016 19:47:18 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.84) with SMTP; Fri, 13 May 2016 15:47:18 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 13 May 2016 15:47:16 -0400 Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, May 13, 2016 at 02:23:25PM -0400, Jeff King wrote: > This covers all cases detected by: > > git grep 'test -z [^"]' > > (though note that has a few false positives for tests which > need an extra layer of quoting to do '\"'). I looked at those false positives, and they're really gratuitous uses of double-quotes that cause the extra layer of quoting. So I set off to fix that, but along the way found an actual bug (in the final patch here), along with a few minor readability fixups. [1/3]: t/lib-git-svn: drop $remote_git_svn and $git_svn_id [2/3]: t9100: enclose all test code in single-quotes [3/3]: t9107: use "return 1" instead of "exit 1" -Peff