aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2015-08-12 21:05:03 (GMT)
committerBrint E. Kriebel <bekit@cyngn.com>2015-08-12 21:21:43 (GMT)
commitd3fe367a7f668f5ab048ccb39d98c6c47f887e5e (patch)
tree8066096c5d8e68c04064a44359207dee257353d2
parent9b2113eaa4217f9615d8ba345f909a22998849ca (diff)
downloadandroid_build-stable/cm-11.0-XNG3C.zip
android_build-stable/cm-11.0-XNG3C.tar.gz
android_build-stable/cm-11.0-XNG3C.tar.bz2
roomservice: use force-sync when adding projects with roomservicestable/cm-11.0-XNG3Crefs/changes/27/3327/1
This works around the error GitError: --force-sync not enabled; cannot overwrite a local work tree when using roomservice. Since this should only trigger when the device repos haven't been checked out yet, we can use force-sync to overwrite any roomservice device paths in the .repo directory. Change-Id: Iac54a8a2f2913f82f8ca6497b8785a9d5769640b Ticket: CYNGNOS-735
-rwxr-xr-xtools/roomservice.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/roomservice.py b/tools/roomservice.py
index 4ec9afa..85b5ab8 100755
--- a/tools/roomservice.py
+++ b/tools/roomservice.py
@@ -220,7 +220,7 @@ def fetch_dependencies(repo_path, fallback_branch = None):
if len(syncable_repos) > 0:
print('Syncing dependencies')
- os.system('repo sync %s' % ' '.join(syncable_repos))
+ os.system('repo sync --force-sync %s' % ' '.join(syncable_repos))
for deprepo in syncable_repos:
fetch_dependencies(deprepo)
@@ -282,7 +282,7 @@ else:
add_to_manifest([adding], fallback_branch)
print("Syncing repository to retrieve project.")
- os.system('repo sync %s' % repo_path)
+ os.system('repo sync --force-sync %s' % repo_path)
print("Repository synced!")
fetch_dependencies(repo_path, fallback_branch)