you notate the music relative to the chords you use and put on top of the piece just below the tuning notation ( if it would be in a different tuning ) that there is a capo to be used at a specific fret.
The song would be in A but this way it would be the clearest for everybody because they play the chords notated in G but with capo on the second fret, else it would become rather confusing.