Show More
@@ -64,6 +64,10 b" testedwith = 'ships-with-hg-core'" | |||
|
64 | 64 | configtable = {} |
|
65 | 65 | configitem = registrar.configitem(configtable) |
|
66 | 66 | |
|
67 | configitem('experimental', 'lfs.user-agent', | |
|
68 | default=None, | |
|
69 | ) | |
|
70 | ||
|
67 | 71 | configitem('lfs', 'url', |
|
68 | 72 | default=configitem.dynamicdefault, |
|
69 | 73 | ) |
@@ -125,6 +125,8 b' class _gitlfsremote(object):' | |||
|
125 | 125 | self.ui = ui |
|
126 | 126 | baseurl, authinfo = url.authinfo() |
|
127 | 127 | self.baseurl = baseurl.rstrip('/') |
|
128 | useragent = repo.ui.config('experimental', 'lfs.user-agent') | |
|
129 | if not useragent: | |
|
128 | 130 | useragent = 'mercurial/%s git/2.15.1' % util.version() |
|
129 | 131 | self.urlopener = urlmod.opener(ui, authinfo, useragent) |
|
130 | 132 | self.retry = ui.configint('lfs', 'retry') |
General Comments 0
You need to be logged in to leave comments.
Login now