Correct test internal behavior to match variable name

The variable name "wildOrigin" was chosen intentionally for the case
that was being tested, but then I made a mistake in later experiments
and changed the test without changing the variable name.
Merge pull request #119 from MarkEWaite/master-sync-jenkins-dependency-with-git-plugin

Sync jenkins dependency with git plugin
Added test for getHeadRev for branches with namespace
Fix for getHeadRev bug when using branch namespaces

JENKINS-20767
Apply PR feedback: Style, imports + missing fix for JGitAPIImpl
Switched back to "jenkinsci" to be on safe side

The tests will fail now until the required branches are
available in jenkinsci! For local tests you can switch
"jenkinsci" to "alexanderlink".

You have to decide how to handle tests!
Currently the productive repo is cloned for testing...
Changed test branches from "test/..." to "tests/..."

+ small refactoring
Create namespace test branches if they don't exist
Small fix for Marks test improvement + refactoring
Merge remote-tracking branch 'upstream/master' into master-work
Merge branch 'proto-fix-namespace-change-detection' into master-work