get branch specific sha-1 and ignore dirty git when in dev mode