Browse Source

Исправлено обновление репозитория в git

tags/3.4.0_alpha6
Mike Khiretskiy 5 years ago
parent
commit
f42e11410b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      pym/update/update.py

+ 3
- 1
pym/update/update.py View File

@@ -162,7 +162,9 @@ class Update(object):
tag_cr = git.getCommit(rpath, revision)
cr = git.getCurrentCommit(rpath)
ref_type = git.reference_type(rpath, revision)
if tag_cr != cr or ref_type == Git.Reference.Branch:
status = git.getStatusInfo(rpath)
if (tag_cr != cr or ref_type == Git.Reference.Branch or
not status or status['files']):
need_update = True
except GitError:
need_update = True


Loading…
Cancel
Save