diff --git a/pym/update/update.py b/pym/update/update.py index 6ad3242..991e5a4 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -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