charmbracelet / charmbracelet/git-lfs-transfer

Incorrect lfs folder on bare repos that are not named *.git

Open Beginner friendly
#78 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
100
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Instead of checking for a bare repo, the code assumes that the repo is bare if its name ends with `.git`: https://github.com/charmbracelet/git-lfs-transfer/blob/84a308d9feb0175848027d27b939f1a0f9ff72f7/cmd.go#L39-L41

Having a bare repo with a directory name that doesn't end in `.git` causes git-lfs-transfer to place the lfs data in `repo/.git/lfs` instead of `repo/lfs`.

Contributor guide

Open the contributing guide

Research direction

Start in cmd.go at lines 39-41, where the repository's bare status is inferred from its directory name. Reproduce the issue with a bare repository whose name does not end in .git and verify that git-lfs-transfer uses repo/lfs rather than repo/.git/lfs; done means both naming styles select the correct LFS directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.