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