OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 | |
3 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
4 # | |
5 # Use of this source code is governed by a BSD-style license | |
6 # that can be found in the LICENSE file in the root of the source | |
7 # tree. An additional intellectual property rights grant can be found | |
8 # in the file PATENTS. All contributing project authors may | |
9 # be found in the AUTHORS file in the root of the source tree. | |
10 | |
11 # Used to work around an upstream bug (crbug.com/644722). | |
12 # This file will be removed ASAP. | |
13 | |
14 import os | |
15 import subprocess | |
16 import sys | |
17 | |
18 # Path to the corrupt project. | |
19 MOCKITO_CHECKOUT_PATH = 'src/third_party/mockito/src' | |
20 | |
21 | |
22 def main(): | |
23 # If this checkout exists, run `git remote prune origin` from it. | |
24 if os.path.isdir(MOCKITO_CHECKOUT_PATH): | |
25 subprocess.check_output( | |
26 ['git', 'remote', 'prune', 'origin'], cwd=MOCKITO_CHECKOUT_PATH) | |
27 else: | |
28 sys.stdout.write('{} does not exist!\n'.format(MOCKITO_CHECKOUT_PATH)) | |
29 return 0 | |
30 | |
31 | |
32 if __name__ == '__main__': | |
33 sys.exit(main()) | |
OLD | NEW |