Do not lock refs when not executing a fetch

Locking the local refs is needed only when executing a Git fetch,
otherwise keep on using the filtering logic without introducing any
local lock.

Also remove the recursion in FetchOne.runImpl() and replace with a
while/loop for avoiding the nested locking.

Change-Id: I57475e3f264efa340765dd357ef6b8bc8e61c284
2 files changed
tree: 3a3981f8e227163311f626ee1d5fbf0b8a830b0d
  1. example-setup/
  2. src/
  3. .gitignore
  4. BUILD
  5. Jenkinsfile
  6. LICENSE