on xenial help sign in
Support git-backed checkout in run_on_device.

Also add .gitignore.

commitc8f0cef2344831e8d1db13ead2134e1396f41d92 authorMichał Sawicz <michal@sawicz.net> dateFri 7 Jun 2013, 16:58 (13 years ago) parent65a5c7d
2 files changed+11−1
.gitignore+9 run_on_device+2−1
.gitignorenew file+9
@@ -0,0 +1,9 @@
1+# default build dir
2+/builddir
3+# QtCreator project files
4+/*.user
5+# Eclipse project files
6+/.project
7+/.cproject
8+/.settings
9+/.pydevproject
run_on_device+2−1
@@ -63,7 +63,8 @@ install_dependencies() {
6363}
6464
6565sync_code() {
66− bzr export --uncommitted --format=dir /tmp/$CODE_DIR
66+ [ -e .bzr ] && bzr export --uncommitted --format=dir /tmp/$CODE_DIR
67+ [ -e .git ] && git checkout-index -a -f --prefix=/tmp/$CODE_DIR/
6768 rsync -crlOzv -e "ssh -p $TARGET_SSH_PORT -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" /tmp/$CODE_DIR/ $USER@$TARGET_IP:$CODE_DIR/
6869 rm -rf /tmp/$CODE_DIR
6970}