parameters: ()
return_statement: return ""
docstring: Returns the Git repository root as an absolute path.
  
      An empty string is returned if no repository root was found.
docstring_summary: Returns the Git repository root as an absolute path.
docstring_tokens: Returns the Git repository root as an absolute path .
function: def get_repo_root():
      """Returns the Git repository root as an absolute path.
  
      An empty string is returned if no repository root was found.
      """
      current_dir = os.path.abspath(os.getcwd())
      while current_dir != os.path.dirname(current_dir):
          if os.path.exists(current_dir + os.sep + ".git"):
              return current_dir
          current_dir = os.path.dirname(current_dir)
      return ""
function_tokens: def get_repo_root ( ) : current_dir = os . path . abspath ( os . getcwd ( ) ) while current_dir != os . path . dirname ( current_dir ) : if os . path . exists ( current_dir + os . sep + ".git" ) : return current_dir current_dir = os . path . dirname ( current_dir ) return ""