From f5e7c75a8a85cecc748b9295f1bb1fb75f83d77c Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Sat, 23 Sep 2017 15:04:47 -0700 Subject: [PATCH] fix reversed logic --- tildewiki/git_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildewiki/git_wrapper.py b/tildewiki/git_wrapper.py index 7aeedcd..13fdba3 100644 --- a/tildewiki/git_wrapper.py +++ b/tildewiki/git_wrapper.py @@ -20,7 +20,7 @@ def create_repo(to_clone, local_path, author_name, author_email): def dirty(repo_path): # TODO figure out how to do with GitPython repo = pygit2.Repository(repo_path) - return repo.status() == {} + return repo.status() != {} def make_commit(repo_path, author_name, author_email): """Given a path to a repository, adds everything and commits it. If there