[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-git-head-is-not-readable-after-clone":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":18,"titleAccent":19,"lead":20,"facts":23,"why":38,"log":43,"fix":84,"engine":93,"related":101,"pitch":118},"express","git-head-is-not-readable-after-clone","Static deploy failed because Git HEAD could not be read","Express, Php, Static site",{"description":9},"Learn what causes Static deploy failed because Git HEAD could not be read, how PanelAlpha Engine responds to it during deployment.",[11,14,17],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":15,"href":16},"Express","\u002Fapps\u002Fstacks\u002Fexpress",{"label":6},"Static deploy failed because ","Git HEAD could not be read",[21],{"text":22},"Error recorded 7 times in PanelAlpha Engine deploys on Express, Php, Static site. The deploy log below is the recorded failure output.",[24,29,32,34],{"label":25,"value":26,"tone":27,"tooltip":28},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":30,"value":31},"Seen","7 times · 4 variants",{"label":33,"value":7},"Where",{"label":35,"value":36,"tooltip":37},"Status","Observed (2.1.0)","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":39,"body":40},"Why it happens",[41],{"text":42},"The static deploy reached the running stage, but the imported project was not recognized as a valid Git repository. This can happen when the repository is empty, corrupt, or an archive is imported without its Git metadata. The health check returned HTTP 200, but installation still failed during repository validation.",{"heading":44,"block":45},"What the log looks like",{"header":46,"lines":47},"Deploy log",[48,52,56,60,64,68,72,76,80],{"segments":49},[50],{"text":51},"Deploy started (source: archive)",{"segments":53},[54],{"text":55},"Starting stage: cloning",{"segments":57},[58],{"text":59},"Importing project archive",{"segments":61},[62],{"text":63},"Project archive imported",{"segments":65},[66],{"text":67},"Starting stage: running",{"segments":69},[70],{"text":71},"fatal: not a git repository (or any parent up to mount point \u002Fhome)",{"segments":73},[74],{"text":75},"Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).",{"segments":77},[78],{"text":79},"Git HEAD is not readable after clone; repository may be empty or corrupt.",{"segments":81},[82],{"text":83},"Deploy failed: Git HEAD is not readable after clone; repository may be empty or corrupt.",{"heading":85,"steps":86,"block":90},"How to fix it",[87],[88],{"text":89},"Fixed in engine 2.1.0. The same repository deploys past this point on engine 2.1.0; this failure no longer occurs. Redeploy the project.",{"header":91,"lines":92},"Fix by hand",[],{"heading":94,"body":95,"block":98},"How PanelAlpha Engine solves it",[96],{"text":97},"Not reproduced on engine 2.1.0 (commit 133832712): redeployed github.com\u002Foctocat\u002FSpoon-Knife (partial) on the engine test hosts on 2026-09-30; no new event on this fingerprint.",{"header":99,"lines":100},"",[],{"heading":102,"items":103},"Apps affected",[104,108,111,115],{"title":105,"badge":106,"tone":27,"href":107},"Spoon Knife · octocat","2 occurrences","\u002Fapps\u002Foctocat\u002Fspoon-knife",{"title":109,"badge":106,"tone":27,"href":110},"dokuwiki\u002Fdokuwiki","\u002Fapps\u002Fdokuwiki\u002Fdokuwiki",{"title":112,"badge":113,"tone":27,"href":114},"astro-portfolio","1 occurrence","\u002Fapps\u002Fdamianwilusz-mg\u002Flanding-page-bolt",{"title":116,"badge":113,"tone":27,"href":117},"express-hello-world","\u002Fapps\u002Frender-examples\u002Fexpress-hello-world",{"heading":119,"body":120,"footNote":121,"docsLabel":122,"docsHref":123},"Try PanelAlpha Engine yourself.","The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.","Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]