Commit 9bd40a63 authored by thakis's avatar thakis Committed by Commit bot

Make merge driver complain about older gits

The git coming with Xcode 7.0 is too old to know about %P. Most
people will be on newer Xcodes (and Trusty's git and depot_tools's
Windows git are new enough), so this doesn't affect most folks -- so
just complaining loudly is good enough.

BUG=574611
TBR=dpranke

Review-Url: https://codereview.chromium.org/2388483004
parent bdb5c1ff
......@@ -27,6 +27,15 @@ def main():
sys.exit(1)
base, current, others, file_name_in_tree = sys.argv[1:5]
if file_name_in_tree == '%P':
print >>sys.stderr
print >>sys.stderr, 'ERROR: clang-format merge driver needs git 2.5+'
if sys.platform == 'darwin':
print >>sys.stderr, 'Upgrade to Xcode 7.2+'
print >>sys.stderr
return 1
print 'Running clang-format 3-way merge driver on ' + file_name_in_tree
try:
......
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