import{s as e}from"./errors-pXKbCKbL.js";import{r as t,t as n}from"./runner-DYk4q6mP.js";async function r(n=process.cwd()){try{let r=await t(`git`,[`rev-parse`,`--is-inside-work-tree`],{cwd:n,silent:!0,throwOnError:!1});if(!r.success||r.stdout.trim()!==`true`)throw new e(n)}catch{throw new e(n)}}async function i(){return await n(`gh`)}export{r as n,i as t};