This is a bug in the libgit2 library, which overlooked the fact that a single quote character might appear as part of a valid reference name.
There's a fix for libgit2 in the works, but short-term you might want to stay away from branches or tags with quote chars in them as a work-around.
Make sure to raise this via the official Visual Studio support channels so they can track this in their system as a bug.