disable snapshots, use local build
get the branch hash if it is detached