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

Commit9044abc

Browse files
committed
Merge pull requestgitpython-developers#194 from maxyz/fix-issue-41_0.3
Fix issuegitpython-developers#41: repo.is_dirty() on empty repository with stashed files
2 parents8f3989f +6c9fcd7 commit9044abc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/repo/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ def is_dirty(self, index=True, working_tree=True, untracked_files=False):
499499
default_args= ('--abbrev=40','--full-index','--raw')
500500
ifindex:
501501
# diff index against HEAD
502-
ifisfile(self.index.path)andself.head.is_valid()and\
503-
len(self.git.diff('HEAD','--cached',*default_args)):
502+
ifisfile(self.index.path)and \
503+
len(self.git.diff('--cached',*default_args)):
504504
returnTrue
505505
# END index handling
506506
ifworking_tree:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp