Heat the olive oil in a non-stick pan over medium heat. Add the minced garlic cloves and fry for about 1 minute, stirring constantly to prevent burning. Pour in the can of chopped tomatoes, then add the sugar and red wine vinegar. Season with salt and freshly ground black pepper to taste. Stir well and let the sauce simmer for about 20 minutes.