Permalink
Browse files

Merge commit 'github/master'

  • Loading branch information...
2 parents 201f70b + 09d4938 commit 8ae2d916d5207ea7e2dc2a65bf33725e9eb385b8 @toddlipcon toddlipcon committed Sep 22, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 git_repo.py
View
@@ -44,14 +44,14 @@ def is_dirty(self):
def is_workdir_dirty(self):
"""Return true if the working directory is dirty (ie there are unstaged changes)"""
# This incantation borrowed from git-rebase shell script
- return self.command(["update-index", "--ignore-submodules", "--refresh"],
+ return self.command(["update-index", "--refresh"],
ignore_stdout=True)
def is_index_dirty(self):
"""Return true if the index is dirty (ie there are uncommited but staged changes)"""
# This incantation borrowed from git-rebase shell script
out = self.command(["diff-index", "--cached", "--name-status", "-r",
- "--ignore-submodules", "HEAD", "--"],
+ "HEAD", "--"],
capture_stdout=True)
return bool(out)

0 comments on commit 8ae2d91

Please sign in to comment.