Testing #2606
Fixed breakage in new git repo without commits
Testing #2606
rkj-repos: code cleanup and updated with functions from lib/git.zsh (thx @mcornella)