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

Also add .gitignore. Approved by Michael Zanetti, PS Jenkins bot.

commit84aae6abc5054f277cd1dad42efd5c8e737d8066 authorMichał Sawicz <michal@sawicz.net> dateMon 10 Jun 2013, 16:20 (13 years ago) parentd7014efc8f0cef
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}