Skip to content

Freight init UX improvements #73

Open

Description

@anthr76
./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

Activity

  1. anthr76 commented on Jul 8, 2026

    @anthr76
    MemberAuthor

    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

  2. ddymko commented on Jul 8, 2026

    @ddymko
    Member

    A good 1st step is to have better error messaging then trying to have implicit behavior. From there we can then evolve that out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions