diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-14 15:18:30 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-14 15:18:30 +0100 |
commit | 6620d9f63598854ab48c9467a2bdfdf74283b4e7 (patch) | |
tree | 00dcb2f846abc432083b1611ab3b84cbee3357a1 /git | |
parent | a82b0df2f25afba1b5810a0aaac64cd3e7d1b588 (diff) | |
parent | f9ec0afbc29932b52f449b7e0a5f79068ecb1f0f (diff) | |
download | gitpython-6620d9f63598854ab48c9467a2bdfdf74283b4e7.tar.gz |
Merge pull request #193 from maxyz/fix-issue-41_master
Fix issue #41: repo.is_dirty() on empty repository with stashed files
Diffstat (limited to 'git')
-rw-r--r-- | git/db/cmd/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/db/cmd/base.py b/git/db/cmd/base.py index b940fd03..dd9aa800 100644 --- a/git/db/cmd/base.py +++ b/git/db/cmd/base.py @@ -662,8 +662,8 @@ class CmdHighLevelRepository(HighLevelRepository): default_args = ('--abbrev=40', '--full-index', '--raw') if index: # diff index against HEAD - if isfile(self.index.path) and self.head.is_valid() and \ - len(self.git.diff('HEAD', '--cached', *default_args)): + if isfile(self.index.path) and \ + len(self.git.diff('--cached', *default_args)): return True # END index handling if working_tree: |