- git fetch --all || FATAL "git fetch didn't work"
- git checkout -f $1 || FATAL "git checkout '$1' didn't work"
+ INFO "Code to compile: gerrit refspec '$1', commit-id: '$2'"
+ git fetch origin $1 || FATAL "git fetch origin '$1' didn't work"
+ git checkout -f $2 || FATAL "git checkout -f '$2' didn't work"
+else
+ INFO "Code to compile: master"
+ git checkout master