Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6620d9f

Browse files
committed
Merge pull request#193 from maxyz/fix-issue-41_master
Fix issue#41: repo.is_dirty() on empty repository with stashed files
2 parentsa82b0df +f9ec0af commit6620d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/db/cmd/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ def is_dirty(self, index=True, working_tree=True, untracked_files=False):
662662
default_args= ('--abbrev=40','--full-index','--raw')
663663
ifindex:
664664
# diff index against HEAD
665-
ifisfile(self.index.path)andself.head.is_valid()and\
666-
len(self.git.diff('HEAD','--cached',*default_args)):
665+
ifisfile(self.index.path)and \
666+
len(self.git.diff('--cached',*default_args)):
667667
returnTrue
668668
# END index handling
669669
ifworking_tree:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp