Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
21ff0f6
Add NTLM Library to git-lfs
Aug 26, 2015
0f7d782
NTLM Toggle Switch and Basic Challenge/Response Code
Aug 27, 2015
619fa88
NTLM Push
Aug 28, 2015
75307c3
NTLM Fetch
Aug 31, 2015
2666d2e
Clean Up Debugging Traces
Sep 1, 2015
db07670
More Trace Cleanup
Sep 1, 2015
4c3976f
More Trace Cleanup
Sep 1, 2015
624307a
Add NTLM Library to git-lfs
Aug 26, 2015
383ac27
NTLM Toggle Switch and Basic Challenge/Response Code
Aug 27, 2015
21f5379
NTLM Push
Aug 28, 2015
9bdca02
NTLM Fetch
Aug 31, 2015
c16c169
Clean Up Debugging Traces
Sep 1, 2015
b4910ee
More Trace Cleanup
Sep 1, 2015
a0b8ebb
More Trace Cleanup
Sep 1, 2015
21159f8
Merge from remote
Oct 5, 2015
d71daee
Git Lfs NTLM Work
Oct 5, 2015
6665e1a
Adding Log To Split NTLM Domain and User
Oct 5, 2015
15b1cac
Clean Up Trace Statements
Oct 5, 2015
3797654
Fix NTLM Domain Handling Logic
Oct 5, 2015
2579100
Response to PR Feedback
Oct 7, 2015
7e21b52
Remove Submodule and Add Nut Dependency
Oct 7, 2015
794735d
Add ThomsonReuters NTLM Library
Oct 7, 2015
310710a
Update NTLM Import String To Vendor Location
Oct 7, 2015
a7f7977
Add log4go Dependency
Oct 7, 2015
b1a9b08
Update NTLM Nut Location
Oct 7, 2015
4ee9881
Add Nut Dependencies for NTLM
Oct 7, 2015
a594128
Fix Auth Tests
Oct 7, 2015
4740930
Fix Stream Close Ordering Bug
Oct 8, 2015
d4fdb02
Fix Casing Bug
Oct 9, 2015
fae7766
Try Removing Stream Closing
Oct 13, 2015
41fd037
Remove Unneeeded Comments
Oct 13, 2015
b8caba5
Add NTLM Unit Tests
Oct 16, 2015
22c4b5a
Update Authenticatin Docs To Include NTLM Info
Oct 16, 2015
279cd1a
Formatting
Oct 16, 2015
ac4306f
Update NTLM Proposal
Oct 6, 2015
6599c1f
Merge From Master
Oct 30, 2015
6a463b4
Merge branch 'ntlm' of https://github.com/WillHipschman/git-lfs into …
technoweenie Nov 6, 2015
16835c3
don't repeat !Config.NtlmAccess() as much
technoweenie Nov 6, 2015
d5622de
use a standard tracer msg when toggling the auth type
technoweenie Nov 6, 2015
ac9219c
ntlm isn't special
technoweenie Nov 6, 2015
bacc69f
fix the md formatting. linebreak waaaaar
technoweenie Nov 6, 2015
1833fa8
no need to close the body again
technoweenie Nov 6, 2015
41db1f9
another spot where the res is double closed
technoweenie Nov 6, 2015
a51a655
force ConcurrentTransfers() to 1 for ntlm
technoweenie Nov 6, 2015
0f54f9a
remove some unnecessary helper funcs
technoweenie Nov 6, 2015
42bf10b
protect against potential go panic
technoweenie Nov 6, 2015
4e7ba74
no need to defer here
technoweenie Nov 6, 2015
46448e8
prefer ioutil.NopCloser()
technoweenie Nov 6, 2015
045ee3c
a const works just fine here for now
technoweenie Nov 6, 2015
aa21be5
never want to TEST for a panic
technoweenie Nov 6, 2015
192b106
extract cloneRequestBody()
technoweenie Nov 6, 2015
d82607b
clone the transfer encoding property
technoweenie Nov 6, 2015
45b29a2
only buffer up to 1MB in memory when copying http request bodies
technoweenie Nov 6, 2015
8106843
better var names
technoweenie Nov 16, 2015
7225d04
Merge pull request #821 from github/ntlm-cloneable-body
technoweenie Nov 16, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lfs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ func Batch(objects []*objectResource, operation string) ([]*objectResource, erro

io.Copy(ioutil.Discard, res.Body)
res.Body.Close()

if err != nil {

if res == nil {
Expand Down
14 changes: 14 additions & 0 deletions lfs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@ func (c *Configuration) NTLM() bool {
return false
}

func (c *Configuration) BatchTransfer() bool {
if v, ok := c.GitConfig("lfs.batch"); ok {
if v == "true" || v == "" {
return true
}

// Any numeric value except 0 is considered true
if n, err := strconv.Atoi(v); err == nil && n != 0 {
return true
}
}
return false
}

func (c *Configuration) BatchTransfer() bool {
value, ok := c.GitConfig("lfs.batch")
if !ok || len(value) == 0 {
Expand Down