aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'git-codereview/mail.go')
-rw-r--r--git-codereview/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-codereview/mail.go b/git-codereview/mail.go
index c0592bf..98de7fa 100644
--- a/git-codereview/mail.go
+++ b/git-codereview/mail.go
@@ -175,7 +175,7 @@ func cmdMail(args []string) {
if *noverify {
args = append(args, "--no-verify")
}
- args = append(args, "origin", refSpec)
+ args = append(args, config()["remote"], refSpec)
run("git", args...)
// Create local tag for mailed change.
@@ -199,7 +199,7 @@ func (b *Branch) PushSpec(c *Commit) string {
if c != nil && (len(b.Pending()) == 0 || b.Pending()[0].Hash != c.Hash) {
local = c.ShortHash
}
- return local + ":refs/for/" + strings.TrimPrefix(b.OriginBranch(), "origin/")
+ return local + ":refs/for/" + strings.TrimPrefix(b.OriginBranch(), config()["remote"]+"/")
}
// mailAddressRE matches the mail addresses we admit. It's restrictive but admits