Remove debug output (to stderr)
Accidentially included in last version. Only happens when running code that uses remoteUrl.
This commit is contained in:
parent
83fa76733f
commit
c34d1da22a
2 changed files with 7 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
||||||
git-annex (10.20240732) UNRELEASED; urgency=medium
|
git-annex (10.20240732) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* Avoid loading cluster log at startup.
|
* Avoid loading cluster log at startup.
|
||||||
|
* Remove debug output (to stderr) accidentially included in
|
||||||
|
last version.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Wed, 31 Jul 2024 15:52:03 -0400
|
-- Joey Hess <id@joeyh.name> Wed, 31 Jul 2024 15:52:03 -0400
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,6 @@ module Types.GitConfig (
|
||||||
mkRemoteConfigKey,
|
mkRemoteConfigKey,
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Debug.Trace
|
|
||||||
|
|
||||||
import Common
|
import Common
|
||||||
import qualified Git
|
import qualified Git
|
||||||
import qualified Git.Config
|
import qualified Git.Config
|
||||||
|
@ -495,8 +493,7 @@ extractRemoteGitConfig r remotename = do
|
||||||
, remoteAnnexClusterGateway = fromMaybe [] $
|
, remoteAnnexClusterGateway = fromMaybe [] $
|
||||||
(mapMaybe (mkClusterUUID . toUUID) . words)
|
(mapMaybe (mkClusterUUID . toUUID) . words)
|
||||||
<$> getmaybe ClusterGatewayField
|
<$> getmaybe ClusterGatewayField
|
||||||
, remoteUrl = traceShow (mkRemoteConfigKey remotename (remoteGitConfigKey UrlField)) $
|
, remoteUrl = case Git.Config.getMaybe (mkRemoteConfigKey remotename (remoteGitConfigKey UrlField)) r of
|
||||||
case Git.Config.getMaybe (mkRemoteConfigKey remotename (remoteGitConfigKey UrlField)) r of
|
|
||||||
Just (ConfigValue b)
|
Just (ConfigValue b)
|
||||||
| B.null b -> Nothing
|
| B.null b -> Nothing
|
||||||
| otherwise -> Just (decodeBS b)
|
| otherwise -> Just (decodeBS b)
|
||||||
|
|
Loading…
Reference in a new issue