You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
396 B
Python
17 lines
396 B
Python
#!/usr/bin/env python
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
if '@' in os.environ.get('GCLIENT_URL'):
|
|
ref = os.environ.get('GCLIENT_URL').split('@')[-1]
|
|
else:
|
|
sys.exit(0)
|
|
|
|
diff = subprocess.check_output("git diff --cached --name-only %s" % ref, shell=True)
|
|
|
|
dep_path = os.environ.get('GCLIENT_DEP_PATH', '')
|
|
for line in diff.splitlines():
|
|
if line:
|
|
print(os.path.join(dep_path, line))
|