git-annex/Remote
Joey Hess 522a0922b8 sync: Fix git sync with local git remotes even when they don't have an annex.uuid set.
Catch an exception when ensureInitialized is run in a non-initted
repository. In this case, just read the git config, so that the Git.Repo
object is not LocalUnknown, which is what is used to represent remotes
on eg, drives that are not connected.

The assistant already got this right, and like with the assistant, this
causes an implicit git-annex init of the local remote on the second sync,
once the git-annex branch has been pushed to it.
See this comment for more analysis:
http://git-annex.branchable.com/todo/Recovering_from_a_bad_sync/#comment-64e469a2c1969829ee149cbb41b1c138

This commit was sponsored by jscit.
2014-07-15 14:27:43 -04:00
..
External factored out Utility.SimpleProtocol from the external special remote implementation 2014-04-05 13:29:28 -04:00
Helper refactor locking 2014-07-10 00:32:23 -04:00
Rsync rsync special remote: Fix slashes when used on Windows. 2014-03-18 13:02:10 -04:00
WebDAV more DAV url fixes for windows 2014-02-25 16:16:14 -04:00
Bup.hs factor out getRemoteGitConfig 2014-05-16 16:08:20 -04:00
Ddar.hs remove odd character that snuck in somehow and broke build 2014-05-15 16:36:19 -04:00
Directory.hs plumb creds from webapp to initremote 2014-02-11 14:07:56 -04:00
External.hs export CreateProcess fields from Utility.Process 2014-06-10 19:20:14 -04:00
GCrypt.hs remove Read instance for Ref 2014-02-19 01:19:57 -04:00
Git.hs sync: Fix git sync with local git remotes even when they don't have an annex.uuid set. 2014-07-15 14:27:43 -04:00
Glacier.hs export CreateProcess fields from Utility.Process 2014-06-10 19:20:14 -04:00
Hook.hs export CreateProcess fields from Utility.Process 2014-06-10 19:20:14 -04:00
List.hs factor out getRemoteGitConfig 2014-05-16 16:08:20 -04:00
Rsync.hs rsync special remote: Fix slashes when used on Windows. 2014-03-18 13:02:10 -04:00
S3.hs S3: Deal with AWS ACL configurations that do not allow creating or checking the location of a bucket, but only reading and writing content to it. 2014-07-11 15:21:43 -04:00
Tahoe.hs Fix thaoe remote to work with latest tahoe (v. 1.10.0) 2014-03-26 00:31:02 +01:00
Web.hs add UrlOptions sum type 2014-02-24 22:00:25 -04:00
WebDAV.hs webdav: When built with a new enough haskell DAV (0.6), disable the http response timeout, which was only 5 seconds. 2014-03-05 13:51:54 -04:00