repoman: fix git_supports_gpg_sign
authorZac Medico <zmedico@gentoo.org>
Wed, 26 Dec 2012 22:47:10 +0000 (14:47 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 26 Dec 2012 22:47:10 +0000 (14:47 -0800)
bin/repoman

index b0e5851ab1c2a6e85541035e33c95becce221cba..45a7ca57f95d6aa785ac182d1146247c0dc864e4 100755 (executable)
@@ -1022,7 +1022,7 @@ def git_supports_gpg_sign():
        if cmd_output:
                version = re.match(r'^(\d+)\.(\d+)\.(\d+)', cmd_output[-1])
                if version is not None:
-                       version = [int(x) for x in version.groups()[1:]]
+                       version = [int(x) for x in version.groups()]
                        if version[0] > 1 or \
                                (version[0] == 1 and version[1] > 7) or \
                                (version[0] == 1 and version[1] == 7 and version[2] >= 9):