git-commit: don't add multiple Signed-off-by: from the same identity
[gitweb.git] / git-cvsserver.perl
index 5cbf27eebc0f090c0d7e45e82064344b30d326fc..10aba507d731b977d354fcbf67ecf9112ec1579c 100755 (executable)
@@ -1813,14 +1813,14 @@ sub req_annotate
 # the second is $state->{files} which is everything after it.
 sub argsplit
 {
-    return unless( defined($state->{arguments}) and ref $state->{arguments} eq "ARRAY" );
-
-    my $type = shift;
-
     $state->{args} = [];
     $state->{files} = [];
     $state->{opt} = {};
 
+    return unless( defined($state->{arguments}) and ref $state->{arguments} eq "ARRAY" );
+
+    my $type = shift;
+
     if ( defined($type) )
     {
         my $opt = {};