You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./result-freight/bin/freight init
.git directory missing: stat .git: no such file or directory
# Generating .git/hooks
INFO Writing Commit Hooks
ERROR ✖ Hook write failed for: pre-commit open .git/hooks/pre-commit: no such file or directory
open .git/hooks/pre-commit: no such file or directory
During init we shouldn't assume it's being ran from repo root and infer it ourselves
After talking with @ddymko offline it sounds like it would be better to clean up the error message and instead instruct the user it needs to be ran in the gitroot
Activity
anthr76 commentedon Jul 8, 2026
After talking with @ddymko offline it sounds like it would be better to clean up the error message and instead instruct the user it needs to be ran in the gitroot
ddymko commentedon Jul 8, 2026
A good 1st step is to have better error messaging then trying to have implicit behavior. From there we can then evolve that out