Does anyone use amnesia ? got git wrong

mix.deps added

{:amnesia, github: "meh/amnesia", tag: :master},

then run

[root@localhost new]# mix deps.get
* Getting amnesia (
remote: Counting objects: 1287, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 1287 (delta 0), reused 0 (delta 0), pack-reused 1285
Receiving objects: 100% (1287/1287), 207.85 KiB | 67 KiB/s, done.
Resolving deltas: 100% (676/676), done.
error: pathspec 'master' did not match any file(s) known to git.
** (Mix) Command "git --git-dir=.git checkout --quiet master" failed

remove the “tag: :master” I don’t think it’s a tag at all but a branch and should be default anyway

Is master a tag? Have you tried not specifying the tag?

{:amnesia, github: "meh/amnesia"}

Alternatively use :branch option for specifying master branch.

1 Like

It works, thanks