| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -648,8 +648,7 @@ def is_dirty(self, index=True, working_tree=True, untracked_files=False): | |||
| 648 | 648 | default_args = ('--abbrev=40', '--full-index', '--raw') | |
| 649 | 649 | if index: | |
| 650 | 650 | # diff index against HEAD | |
| 651 | - if isfile(self.index.path) and self.head.is_valid() and \ | ||
| 652 | - len(self.git.diff('HEAD', '--cached', *default_args)): | ||
| 651 | + if isfile(self.index.path) and len(self.git.diff('--cached', *default_args)): | ||
| 653 | 652 | return True | |
| 654 | 653 | # END index handling | |
| 655 | 654 | if working_tree: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments