get_remote_group(): eliminate superfluous call to strcspn()
commit5f65499fa281748421f2ae65cd794533ada4b4de
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 28 Jul 2015 21:08:20 +0000 (28 23:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2015 21:39:24 +0000 (28 14:39 -0700)
tree96973bd7f198a19a4029afa61537125a2fa018b6
parente286542de0c27e2c53d9a1ec44897dbef5de80dc
get_remote_group(): eliminate superfluous call to strcspn()

There is no need to call it if value is the empty string. This also
eliminates code duplication.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c