Skip to content

Commit

Permalink
force ConcurrentTransfers() to 1 for ntlm
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Nov 6, 2015
1 parent 41db1f9 commit a51a655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The Git LFS API uses HTTP Basic Authentication to authorize requests. The
credentials can come from the following places:

1. Specified in the URL: `https://user:[email protected]/user/repo.git/info/lfs`.
This is not recommended for security reasons because it relies on the
This is not recommended for security reasons because it relies on the
credentials living in your local git config.
2. `git-credential` will either retrieve the stored credentials for your Git
host, or ask you to provide them. Successful requests will store the credentials
Expand Down Expand Up @@ -79,8 +79,7 @@ Invalid LFS operation: "wat"
HTTPS is strongly encouraged for all production Git LFS servers.

If your Git LFS server authenticates with NTLM then you must provide your credentials to `git-credential`
in the form `username:DOMAIN\user password:password`. You must additionally set `ConcurrentTransfers=1` in
your Git config.
in the form `username:DOMAIN\user password:password`.

### Hypermedia

Expand Down Expand Up @@ -116,7 +115,7 @@ Any other response code is treated as an error.

The Storage API is a generic API for directly uploading and downloading objects.
Git LFS servers can offload object storage to cloud services like S3, or
implemented natively in the Git LFS server. The only requirement is that
implemented natively in the Git LFS server. The only requirement is that
hypermedia objects from the Git LFS API return the correct headers so clients
can access the storage API properly.

Expand Down
4 changes: 4 additions & 0 deletions lfs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func (c *Configuration) Endpoint() Endpoint {
}

func (c *Configuration) ConcurrentTransfers() int {
if c.NtlmAccess() {
return 1
}

uploads := 3

if v, ok := c.GitConfig("lfs.concurrenttransfers"); ok {
Expand Down

0 comments on commit a51a655

Please sign in to comment.