Removed irrelevant and unused variables dealing with branches. Also pulled default branch from userenv when not specified as a param. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>