Show More
@@ -718,9 +718,8 b' class gitsubrepo(abstractsubrepo):' | |||||
718 | if self._state[1] != self._gitstate(): # version checked out changed? |
|
718 | if self._state[1] != self._gitstate(): # version checked out changed? | |
719 | return True |
|
719 | return True | |
720 | # check for staged changes or modified files; ignore untracked files |
|
720 | # check for staged changes or modified files; ignore untracked files | |
721 | status = self._gitcommand(['status']) |
|
721 | out, code = self._gitdir(['diff-index', '--quiet', 'HEAD']) | |
722 | return ('\n# Changed but not updated:' in status or |
|
722 | return code == 1 | |
723 | '\n# Changes to be committed:' in status) |
|
|||
724 |
|
723 | |||
725 | def get(self, state): |
|
724 | def get(self, state): | |
726 | source, revision, kind = state |
|
725 | source, revision, kind = state |
General Comments 0
You need to be logged in to leave comments.
Login now