Permalink
Browse files

Don't use --ignore-submodules

Its only supported in later versions of git and we don't want to impose
a hard requirement on bleeding edge git.
  • Loading branch information...
1 parent 28f0382 commit 09d4938ed64407ea28d42730b289ca324c0bb682 Chad Metcalf committed Sep 15, 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 09d4938

Please sign in to comment.