old_contents: # pyinfra
  # File: pyinfra/facts/git.py
  # Desc: local git repo facts
  
  from pyinfra.api.facts import FactBase
  
  
  class GitBranch(FactBase):
      def command(self, name):
          return 'git -C {0} rev-parse --abbrev-ref HEAD'.format(name)
  
new_contents: # pyinfra
  # File: pyinfra/facts/git.py
  # Desc: local git repo facts
  
  from pyinfra.api.facts import FactBase
  
  
  class GitBranch(FactBase):
      def command(self, name):
          return 'cd {0} && git rev-parse --abbrev-ref HEAD'.format(name)
  
subject: Fix the git branch fact for old versions of git (no -C support)