def METHOD_NAME(self, ctx, args):
    args = list(args)
    for i in range(len(args)):
        arg = args[i]
        if arg == "--":
            # Insert a second `--` arg.
            # One of the `--` gets consumed by Click during super() below.
            # Then the second one gets left alone and we can pass it to git.
            args.insert(i + 1, "--")
            break
    return super(PreserveDoubleDash, self).METHOD_NAME(ctx, args)