]> asedeno.scripts.mit.edu Git - git.git/commitdiff
remote.c: correct the check for a leading '/' in a remote name
authorBrandon Casey <casey@nrlssc.navy.mil>
Tue, 14 Oct 2008 20:30:21 +0000 (15:30 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Oct 2008 00:18:29 +0000 (17:18 -0700)
This test is supposed to disallow remote entries in the config file of the
form:

   [remote "/foobar"]
      ...

The leading slash in '/foobar' is not acceptable.

Instead it was incorrectly testing that the subkey had no leading '/', which
had no effect since the subkey pointer was made to point at a '.' in the
preceding lines.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Acked-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

No differences found