Commit 208d689f authored by Jérome Perrin's avatar Jérome Perrin

Revert "gitclone: don't do anything at update() if develop=true."

This reverts commit ab3bdcfb.
parent 66fc792b
......@@ -240,9 +240,7 @@ class Recipe(object):
If user doesn't develop, reset to remote revision (or branch if revision is
not specified).
"""
if self.develop:
return
try:
# first cleanup pyc files
self.deletePycFiles(self.location)
......@@ -251,10 +249,18 @@ class Recipe(object):
# If develop parameter is set, don't reset/update.
# Otherwise, reset --hard
if not self.develop:
if self.revision:
self.gitReset(self.revision)
else:
self.gitReset('@{upstream}')
except:
if not self.develop:
raise
# Buildout will remove the installed location and mark the part as not
# installed if an error occurs during update. If we are developping this
# repository we do not want this to happen.
print 'Unable to update:\n%s' % traceback.format_exc()
def uninstall(name, options):
"""Keep the working copy, unless develop is set to false.
......
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