Skip to content

Commit

Permalink
Fix a typo using GitKnowledgeRepository.git_has_remote, whereby the l…
Browse files Browse the repository at this point in the history
…ogic required the boolean value to be negated.
  • Loading branch information
Matthew Wardrop committed Sep 29, 2016
1 parent adc8b34 commit 194d245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knowledge_repo/repositories/gitrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def _add_cleanup(self, kp, path, update=False, branch=None, squash=False, messag
raise e

def _submit(self, path=None, branch=None, force=False):
if self.git_has_remote:
if not self.git_has_remote:
raise RuntimeError("Could not find remote repository `{}` into which this branch should be submitted.".format(self.config.remote_name))
if branch is None and path is None:
raise ValueError("To submit a knowledge post, a path to the post and/or a git branch must be specified.")
Expand Down

0 comments on commit 194d245

Please sign in to comment.