git-annex/Utility
Joey Hess ff458ecf3b
reject git credential only on http 401
Before, when the http server returned 401, it would retry the http
request, but then if the request failed in some other way (eg 404),
it  called signalsuccess False. Which caused the git credential to
be rejected, even though auth succeeded.

Note that the other 2 call sites of rejectUrlCredential, in
Remote.GitLFS and P2P.Http.Client, already handled this correctly.
2026-03-06 13:20:40 -04:00
..
Directory clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
DirWatcher Kqueue: update to OsPath 2026-02-12 12:43:43 -04:00
Env clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
FileIO fix conversions to withFile 2026-02-02 11:12:42 -04:00
LockFile remove support for building with old versions of Win32 2026-01-01 14:51:20 -04:00
LockPool clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Path clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Process clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Scheduled clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Tmp OsPath transition Windows build fixes 2025-02-11 15:40:53 -04:00
Url fix build on windows 2023-08-18 13:03:47 -04:00
Aeson.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Android.hs explict export lists 2019-11-21 16:08:37 -04:00
Applicative.hs squelch tab warnings 2019-11-22 12:49:41 -04:00
Attoparsec.hs fix git ls-tree parser 2019-12-06 14:05:48 -04:00
AuthToken.hs improve AuthToken display in P2P --debug 2025-08-01 12:58:03 -04:00
Base64.hs simplify base64 to only use ByteString 2023-10-26 13:10:05 -04:00
Batch.hs add searchPathContents 2021-02-02 19:06:15 -04:00
Bloom.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
CoProcess.hs make commitMigration interuption safe 2023-12-06 16:29:58 -04:00
CopyFile.hs annex.fastcopy 2025-06-03 15:01:38 -04:00
Daemon.hs remotedaemon: Avoid crashing when run with --debug 2025-11-03 15:02:14 -04:00
Data.hs eliminate s2w8 and w82s 2023-10-26 13:12:57 -04:00
DataUnits.hs remove read of the heads 2024-09-26 18:43:59 -04:00
DBus.hs explict export lists 2019-11-21 16:08:37 -04:00
Debug.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
DebugLocks.hs explict export lists 2019-11-21 16:08:37 -04:00
Directory.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
DirWatcher.hs Fix build without the assistant. 2025-03-26 10:17:03 -04:00
DiskFree.hs removed the old Android app 2018-10-13 01:41:11 -04:00
Dot.hs explict export lists 2019-11-21 16:08:37 -04:00
DottedVersion.hs more RawFilePath conversion 2020-10-29 12:03:50 -04:00
Env.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Exception.hs avoid displaying ExitCode exceptions 2023-04-12 17:04:57 -04:00
FileIO.hs add back missing include on windows 2026-02-02 10:07:31 -04:00
FileMode.hs convert all readFile, writeFile, and appendFile to close-on-exec safe versions 2025-09-05 15:44:32 -04:00
FileSize.hs OsPath transition Windows build fixes 2025-02-11 15:40:53 -04:00
FileSystemEncoding.hs avoid relatedTemplate ever returning "" 2025-09-04 13:02:46 -04:00
Format.hs find, findkeys, examinekey: escape output to terminal when --format is not used 2023-04-11 15:27:07 -04:00
FreeDesktop.hs convert all readFile, writeFile, and appendFile to close-on-exec safe versions 2025-09-05 15:44:32 -04:00
Glob.hs Typo: sansative -> sensitive 2023-03-17 15:14:50 -04:00
Gpg.hs noCreateProcessWhile to fix close-on-exec races 2025-09-10 14:29:15 -04:00
Hash.hs Removed support for building with cryptonite, use crypton. 2025-09-10 13:21:06 -04:00
HtmlDetect.hs more OsPath conversion (639/749) 2025-02-07 16:07:05 -04:00
HumanNumber.hs Fix a rounding bug in display of data sizes 2021-07-30 09:56:04 -04:00
HumanTime.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
InodeCache.hs convert all readFile, writeFile, and appendFile to close-on-exec safe versions 2025-09-05 15:44:32 -04:00
IPAddress.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
libkqueue.c
libkqueue.h
LinuxMkLibs.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
LockFile.hs
LockPool.hs
LogFile.hs more OsPath conversion 2025-01-25 10:54:51 -04:00
Lsof.hs more OsPath conversion 2025-01-25 10:54:51 -04:00
MagicWormhole.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Matcher.hs treat "not present" in preferred content as invalid 2024-09-03 13:50:06 -04:00
MD5.hs use filepath-bytestring for annex object manipulations 2019-12-11 15:25:07 -04:00
Metered.hs more OsPath conversion 2025-01-29 11:53:20 -04:00
Misc.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Monad.hs Add git-annex remote refs that are not newer to the merged refs list 2023-08-09 13:31:36 -04:00
MonotonicClock.hs remove i386ancient and need at least debian stable to build 2025-01-01 14:15:55 -04:00
Mounts.hs removed the old Android app 2018-10-13 01:41:11 -04:00
MoveFile.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Network.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
NotificationBroadcaster.hs
OpenFd.hs Removed support for building with ghc older than 9.6.6 2026-01-01 15:20:52 -04:00
OpenFile.hs audit all openFd and dupping for close-on-exec 2025-09-04 16:01:41 -04:00
OptParse.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
OsPath.hs stop exporting RawFilePath 2025-02-12 12:59:30 -04:00
OsString.hs more OsPath conversion (602/749) 2025-02-07 14:46:11 -04:00
OSX.hs optimise literalOsPath 2025-01-27 16:36:29 -04:00
PartialPrelude.hs remove read of the heads 2024-09-26 18:43:59 -04:00
Path.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Percentage.hs
PID.hs explict export lists 2019-11-21 16:08:37 -04:00
Process.hs noCreateProcessWhile to fix close-on-exec races 2025-09-10 14:29:15 -04:00
QuickCheck.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
RawFilePath.hs OsPath transition Windows build fixes 2025-02-11 15:40:53 -04:00
ResourcePool.hs use ResourcePool for hash-object handles 2022-07-25 17:32:39 -04:00
Rsync.hs OsPath transition Windows build fixes 2025-02-11 15:40:53 -04:00
SafeCommand.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
SafeOutput.hs more OsPath conversion (602/749) 2025-02-07 14:46:11 -04:00
Scheduled.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
Shell.hs windows build fixes 2025-09-10 13:34:17 -04:00
ShellEscape.hs clean up imports needed by old versions of ghc 2025-09-23 13:55:13 -04:00
SimpleProtocol.hs P2P protocol version 2, adding SUCCESS-PLUS and ALREADY-HAVE-PLUS 2024-06-18 16:21:40 -04:00
Split.hs reword comment 2019-11-27 16:38:18 -04:00
SshConfig.hs bring back OsPath changes 2025-01-30 14:34:21 -04:00
SshHost.hs avoid the dashed ssh hostname class of security holes 2017-08-17 22:11:31 -04:00
StatelessOpenPGP.hs noCreateProcessWhile to fix close-on-exec races 2025-09-10 14:29:15 -04:00
Su.hs more OsPath conversion 2025-01-24 16:31:14 -04:00
SystemDirectory.hs use to/fromOsPath 2025-02-11 13:54:51 -04:00
Tense.hs explict export lists 2019-11-23 11:24:10 -04:00
Terminal.hs Windows: Fix escaping output to terminal when using old versions of MinTTY 2024-03-26 13:09:21 -04:00
ThreadLock.hs explict export lists 2019-11-23 11:24:10 -04:00
ThreadScheduler.hs fix build warnings on windows 2024-03-26 13:11:53 -04:00
TimeStamp.hs bring back OsPath changes 2025-01-30 14:34:21 -04:00
TList.hs remove i386ancient and need at least debian stable to build 2025-01-01 14:15:55 -04:00
Tmp.hs small optimisation 2025-09-15 13:49:14 -04:00
Tor.hs convert all readFile, writeFile, and appendFile to close-on-exec safe versions 2025-09-05 15:44:32 -04:00
Touch.hs OsPath build flag no longer depends on filepath-bytestring 2025-02-10 16:39:55 -04:00
Tuple.hs explict export lists 2019-11-23 11:24:10 -04:00
Url.hs reject git credential only on http 401 2026-03-06 13:20:40 -04:00
UserInfo.hs Removed support for building with ghc older than 9.6.6 2026-01-01 15:20:52 -04:00
Verifiable.hs use hmac in balanced preferred content 2024-08-10 16:32:54 -04:00
WebApp.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Yesod.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00