summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/sync-webkit-git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sync-webkit-git.py b/tools/sync-webkit-git.py
index 0de9d40..469d82b 100755
--- a/tools/sync-webkit-git.py
+++ b/tools/sync-webkit-git.py
@@ -75,7 +75,8 @@ def UpdateCurrentCheckoutIfAppropriate():
print "Run 'git checkout gclient' to put this under control of gclient."
return
- if subprocess.call(['git', 'diff-index', '--exit-code', 'HEAD']):
+ if subprocess.call(['git', 'diff-index', '--exit-code', '--shortstat',
+ 'HEAD']):
print "Resetting tree state to new revision."
subprocess.check_call(['git', 'reset', '--hard'])