export: Deprecated the --tracking option.

Instead, users can configure remote.<name>.annex-tracking-branch themselves.
This commit is contained in:
Joey Hess 2019-02-23 15:48:25 -04:00
parent d805401708
commit 4747fa923d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 18 additions and 11 deletions

View file

@ -88,9 +88,11 @@ headExists repo = do
sha :: Branch -> Repo -> IO (Maybe Sha)
sha branch repo = process <$> showref repo
where
showref = pipeReadStrict [Param "show-ref",
Param "--hash", -- get the hash
Param $ fromRef branch]
showref = pipeReadStrict
[ Param "show-ref"
, Param "--hash" -- get the hash
, Param $ fromRef branch
]
process [] = Nothing
process s = Just $ Ref $ firstLine s