Making fixes and improvements to the cell-build tool.
Change-Id: I1fc5b908f431c5f9f09aa7167fabb061024de28e
diff --git a/tools/dev/bin/cell-build b/tools/dev/bin/cell-build
index 8196b32..3e35eb7 100755
--- a/tools/dev/bin/cell-build
+++ b/tools/dev/bin/cell-build
@@ -10,7 +10,7 @@
baseCommit=${1:-$(git log | grep origin/master | head -n1 | cut -d\ -f2)}
# Create a patch file
-git diff --cached --staged --binary $baseCommit > /tmp/$baseCommit.patch
+git diff $baseCommit > /tmp/$baseCommit.patch
# Copy patch file to the remote build machine
scp /tmp/$baseCommit.patch $ONOS_USER@$OCN:/tmp
@@ -33,8 +33,8 @@
fi
# Apply the patch
- git apply --no-add /tmp/$baseCommit.patch
+ git apply /tmp/$baseCommit.patch
- # Run the build (neutralizing known environment mutations)
+ # Run the build (neutralizing known environment mutations in SSH sessions)
SHLVL=1 SSH_CLIENT=0 SSH_CONNECTION=0 bazel build onos
"