mirror of
https://github.com/git/git.git
synced 2024-11-18 15:04:49 +01:00
Merge branch 'fix'
* fix: checkout: fix dirty-file display.
This commit is contained in:
commit
29cd1fa451
1 changed files with 4 additions and 2 deletions
|
@ -165,8 +165,10 @@ else
|
|||
exit 0
|
||||
)
|
||||
saved_err=$?
|
||||
test "$new" = "$old" ||
|
||||
git diff-index --name-status "$new"
|
||||
if test "$saved_err" = 0
|
||||
then
|
||||
test "$new" = "$old" || git diff-index --name-status "$new"
|
||||
fi
|
||||
(exit $saved_err)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue