Browse Source

Minor bugfixes

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
2fd7e9eaa3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      earwigbot/commands/git.py

+ 2
- 2
earwigbot/commands/git.py View File

@@ -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.")


Loading…
Cancel
Save