Commit bd2050e0 authored by Julien Muchembled's avatar Julien Muchembled

erp5testnode: fix possible error when updating Git working copy

parent 1e0e1bfe
......@@ -188,6 +188,12 @@ class Updater(object):
h = revision[1]
if h != self._git('rev-parse', 'HEAD'):
# For performance reasons, 'reset --merge' only looks at mtime & ctime
# to check is the index is correct and conflicts immediately if
# contents or metadata changed. Even hardlinking a file changes its
# ctime, so at least for buildout (local download), we need to
# refresh index first.
self._git('update-index', '--refresh')
self._git('reset', '--merge', h)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment