fix platform not written

This commit is contained in:
daveberrys committed 2026-07-01 17:54:43 +08:00
1 parent 17b3d9fda5
commit ed41c19bbf
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ func performAccountSwitch(username string) error {
homeDir, err := os.UserHomeDir()
if err != nil { return err }
credentials := fmt.Sprintf("https://%s:%s@github.com\n", account.Username, account.ClassicToken)
credentials := fmt.Sprintf("https://%s:%s@%s\n", account.Username, account.ClassicToken, account.Platform)
if err := os.WriteFile(filepath.Join(homeDir, ".git-credentials"), []byte(credentials), 0600); err != nil { return err }
fmt.Printf("Switched to account: %s\n", account.Username)