You could try to repair it, but it really depends on where the rip is? Ie, if it's close to the pocket opening where you can get a sewing machine in to patch it up, then it may be doable.
If you do want to, it would be best to use a sewing machine and cut out a patch, use polyester thread as cotton would wick.. then put it through the dryer on hot to help seal any puncture holes.
HTH