Commit 4bf74591 by ichuang

add git reset --hard HEAD to git command in quickedit_git_reload

parent c4a0daa4
......@@ -437,7 +437,7 @@ def quickedit_git_reload(request):
if 'gitupdate' in request.POST:
import os # FIXME - put at top?
cmd = "cd ../data%s; git pull origin %s" % (xp,xp.replace('/',''))
cmd = "cd ../data%s; git reset --hard HEAD; git pull origin %s" % (xp,xp.replace('/',''))
msg += '<p>cmd: %s</p>' % cmd
ret = os.popen(cmd).read()
msg += '<p><pre>%s</pre></p>' % ret.replace('<','&lt;')
......
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