remote may not be "origin". Git plugin allows multiple remotes.
What's your underlying use-case ?