From 2fd7e9eaa3d975b85bce1cf7e0e3901146c6a6e4 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 8 Apr 2012 22:21:10 -0400 Subject: [PATCH] Minor bugfixes --- earwigbot/commands/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/commands/git.py b/earwigbot/commands/git.py index 9e4a627..66627d9 100644 --- a/earwigbot/commands/git.py +++ b/earwigbot/commands/git.py @@ -107,7 +107,7 @@ class Command(BaseCommand): subcommands += "\x0303{0}\x0301 ({1}), ".format(key, help[key]) subcommands = subcommands[:-2] # Trim last comma and space msg = "sub-commands are: {0}; repos are: {1}. Syntax: !git \x0303subcommand\x0301 \x0302repo\x0301" - self.reply(self.data, msg.format(subcommands, get_repos())) + self.reply(self.data, msg.format(subcommands, self.get_repos())) def do_branch(self): """Get our current branch.""" @@ -184,7 +184,7 @@ class Command(BaseCommand): if updated: update = ", ".join([info.ref.remote_head for info in updated]) - msg = "done; updates to {1} (from {2}).".format(update, remote.url) + msg = "done; updates to {0} (from {1}).".format(update, remote.url) self.reply(self.data, msg) else: self.reply(self.data, "done; no new changes.")