Allow use on repos without commits #14
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/flake-compat#14
Loading…
Reference in a new issue
No description provided.
Delete branch "jtojnar/fresh-repos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When starting a new repository, it does not have any branches in
.git/refs/heads
and.git/refs/HEAD
contains a brokenref: refs/heads/master
reference.This means that cloning a repo like we do for cleaning will fail with very unhelpful message for freshly created repo:
This is quite confusing when you create a new repo by copying Nix files from another, working one, make some trivial changes, stage them and then try to test a shell.
Test this by cloning a flake repo, remove the
.git
repository and stage all the files and then letnix-shell
do its work.Weirdly, I could not reproduce it with
nix-shell
or plaindirenv
butnix-direnv
triggers it consistently with latest flake-compat and it is consistently not triggered by flake-compat from this branch.Pull request closed