system.autoUpgrade fetching "master"?

So, I’ve got autoUpgrade set up here, and it used to work at one point:

https://git.sr.ht/~pkulak/nix/tree/main/item/hosts/fry/default.nix#L19

But now the service is failing with:

fatal: ambiguous argument 'master'
while fetching the input 'git+file:///home/phil/nix'

so, it’s like it’s trying to “fetch” my directory, which, fine, but I don’t have a “master” branch, only “main”. Is there any way to specify the branch? Thanks!

Okay, I was able to get it work by making a ref link to main, like so:

git symbolic-ref refs/heads/master refs/heads/main

but… that is somewhat unsatisfying, as it’s now a piece of setup that is required, but stored in my head, not a conifg. :confused: