Add functional test for issue #1083.
Fix code comment ("tag" to "tag or branch").
DRY up use of repo directory in test_freeze_git_clone().