parameters: (folder)
return_statement: return find_dotgit(os.path.dirname(folder))
docstring: Finds the parent folder that has a .git folder. Since this script will
      usually be invoked from within a submodule, the Makefile in the submodule
      will can't be parsed properly. So we need to find the real one which is
      located at the root of our git repo.
docstring_summary: Finds the parent folder that has a .git folder. Since this script will
      usually be invoked from within a submodule, the Makefile in the submodule
      will can't be parsed properly. So we need to find the real one which is
      located at the root of our git repo.
docstring_tokens: Finds the parent folder that has a . git folder . Since this script will usually be invoked from within a submodule the Makefile in the submodule will can t be parsed properly . So we need to find the real one which is located at the root of our git repo .
function: def find_dotgit(folder):
      """
      Finds the parent folder that has a .git folder. Since this script will
      usually be invoked from within a submodule, the Makefile in the submodule
      will can't be parsed properly. So we need to find the real one which is
      located at the root of our git repo.
      """
      if os.path.isdir(os.path.join(folder, ".git")):
          return folder
      return find_dotgit(os.path.dirname(folder))
function_tokens: def find_dotgit ( folder ) : if os . path . isdir ( os . path . join ( folder , ".git" ) ) : return folder return find_dotgit ( os . path . dirname ( folder ) )