MCPcopy
hub / github.com/git-lfs/git-lfs / newLockClient

Function newLockClient

commands/commands.go:98–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func 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
118func newDownloadCheckQueue(manifest tq.Manifest, remote string, options ...tq.Option) *tq.TransferQueue {

Callers 8

locksCommandFunction · 0.85
lockCommandFunction · 0.85
postMergeCommandFunction · 0.85
trackCommandFunction · 0.85
VerifyMethod · 0.85
postCheckoutCommandFunction · 0.85
postCommitCommandFunction · 0.85
unlockCommandFunction · 0.85

Calls 12

SetupFileCacheMethod · 0.95
NewClientFunction · 0.92
MkdirAllFunction · 0.92
getAPIClientFunction · 0.85
ExitFunction · 0.85
PushRemoteMethod · 0.80
LFSStorageDirMethod · 0.80
LocalWorkingDirMethod · 0.80
LocalGitDirMethod · 0.80
GetMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected