Skip to content

Fix output of vcs name in prefer method.

Peter Donis requested to merge pdonis/reposurgeon:vcs-output-fix into master

Current code raises TypeError when prefer command is issued without arguments; it is trying to concatenate a VCS instance with a string. This patch fixes the code to call str() to get the string name of the VCS instance. (Code in earlier versions had print() instead of sys.stdout.write() here, so the VCS instance had str() called implicitly on it.)

Merge request reports