]> dgit.raspbian.org Git - git-annex.git/commitdiff
drop gitremotes cache when config is changed
authorJoey Hess <joeyh@joeyh.name>
Mon, 24 Jun 2024 13:36:21 +0000 (09:36 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 24 Jun 2024 13:36:21 +0000 (09:36 -0400)
Annex.hs

index ca2d83c3a36f8a9de5af2827b38ca732b1b75984..4c2ac4323f721ad5548abe7fd32ecbcbcc493293 100644 (file)
--- a/Annex.hs
+++ b/Annex.hs
@@ -428,6 +428,7 @@ changeGitRepo r = do
                { repo = r'
                , gitconfig = gitconfigadjuster $
                        extractGitConfig FromGitConfig r'
+               , gitremotes = Nothing
                }
 
 {- Gets the RemoteGitConfig from a remote, given the Git.Repo for that