naggie / dstask

Git powered terminal-based todo/note manager -- markdown note page per task. Single binary!

Home Page:https://calbryant.uk/blog/dstask-a-taskwarrior-alternative/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal: bad revision 'HEAD' on first add

naggie opened this issue · comments

Original report: #8 (comment) courtesy of @ghistes

image

Cause:

dstask/git.go

Line 37 in e4d8034

if RunGitCmd(repoPath, "diff-index", "--quiet", "HEAD", "--") == nil {

Solution is probably to see if anything is in .git/objects

image

Fixed in master.