def run_async(self):
        open_folders = self.window.folders()
        if open_folders:
            suggested_git_root = open_folders[0]
        else:
            file_path = self.window.active_view().file_name()
            if file_path:
                suggested_git_root = os.path.dirname(file_path)
            else:
                suggested_git_root = ""

        if suggested_git_root and os.path.exists(os.path.join(suggested_git_root, ".git")):
            if sublime.ok_cancel_dialog(CONFIRM_REINITIALIZE):
                self.on_done(suggested_git_root, re_init=True)
            return

        self.window.show_input_panel(REPO_PATH_PROMPT, suggested_git_root, self.on_done, None, None)
dataset/ETHPy150Open divmain/GitSavvy/core/commands/init.py/GsInit.run_async/original