{"thread":{"id":"66121","subject":"bug: git credentials helper strips wwwauth[] on HTTP redirect","startedAt":"2026-08-05T09:06:21Z","lastAt":"2026-08-05T09:06:21Z","messageCount":1,"participants":["Adien Akhmad"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"549662","messageId":"CADoNwcscDrx+YcfbcW4YKONDZZQgnPiwEOxL4QYV_C7_=FOFcg@mail.gmail.com","threadId":"66121","inReplyTo":null,"subject":"bug: git credentials helper strips wwwauth[] on HTTP redirect","fromName":"Adien Akhmad","fromEmail":"adien.akhmad@gmail.com","sentAt":"2026-08-05T09:06:05Z","receivedAt":"2026-08-05T09:06:21Z","isPatch":false,"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\nRan `git push` to a remote whose URL 301-redirects to a new path before the\nserver responds 401 with a WWW-Authenticate header.\n\nWhat did you expect to happen? (Expected behavior)\n\nwwwauth[] to be passed to my credential helper, as it is when pushing to the\nsame server without a redirect.\n\nWhat happened instead? (Actual behavior)\n\nwwwauth[] was empty, so the helper couldn't detect the auth scheme.\n\nWhat's different between what you expected and what actually happened?\n\nThe redirect causes wwwauth[] to be dropped\n\nAnything else you want to add:\n\nThe credential helper in context is\nhttps://github.com/hickford/git-credential-oauth\nThe server is a self hosted forgejo https://forgejo.org/\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.55.0\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nrust: disabled\nfeature: fsmonitor--daemon\ngettext: enabled\nlibcurl: 8.15.0\nOpenSSL: OpenSSL 3.5.7 9 Jun 2026\nzlib-ng: 2.3.3\nSHA-1: SHA1_DC\nSHA-256: SHA256_BLK\ndefault-ref-format: files\ndefault-hash: sha1\nuname: Linux 7.1.5-101.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 28\n14:24:13 UTC 2026 x86_64\ncompiler info: gnuc: 15.2\nlibc info: glibc: 2.42\n$SHELL (typically, interactive shell): /bin/bash\n\n\n[Enabled Hooks]\nnot run from a git repository - no hooks to show\n"}]}