()
| 96 | } |
| 97 | |
| 98 | func newLockClient() *locking.Client { |
| 99 | lockClient, err := locking.NewClient(cfg.PushRemote(), getAPIClient(), cfg) |
| 100 | if err == nil { |
| 101 | tools.MkdirAll(cfg.LFSStorageDir(), cfg) |
| 102 | err = lockClient.SetupFileCache(cfg.LFSStorageDir()) |
| 103 | } |
| 104 | |
| 105 | if err != nil { |
| 106 | Exit(tr.Tr.Get("Unable to create lock system: %v", err.Error())) |
| 107 | } |
| 108 | |
| 109 | // Configure dirs |
| 110 | lockClient.LocalWorkingDir = cfg.LocalWorkingDir() |
| 111 | lockClient.LocalGitDir = cfg.LocalGitDir() |
| 112 | lockClient.SetLockableFilesReadOnly = cfg.SetLockableFilesReadOnly() |
| 113 | |
| 114 | return lockClient |
| 115 | } |
| 116 | |
| 117 | // newDownloadCheckQueue builds a checking queue, checks that objects are there but doesn't download |
| 118 | func newDownloadCheckQueue(manifest tq.Manifest, remote string, options ...tq.Option) *tq.TransferQueue { |
no test coverage detected