|
|
|
@ -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
|
|
|
|
|