Skip to content

Commit 9188db6

Browse files
committed
add back missing git_client and bump version to 0.1.2
1 parent 1832b9b commit 9188db6

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

vsts/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup, find_packages
77

88
NAME = "vsts"
9-
VERSION = "0.1.1"
9+
VERSION = "0.1.2"
1010

1111
# To install the library, run the following
1212
#

vsts/vsts/git/v4_1/git_client.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Generated file, DO NOT EDIT
4+
# Changes may cause incorrect behavior and will be lost if the code is
5+
# regenerated.
6+
# --------------------------------------------------------------------------
7+
8+
9+
from msrest.pipeline import ClientRequest
10+
from .git_client_base import GitClientBase
11+
12+
13+
class GitClient(GitClientBase):
14+
"""Git
15+
:param str base_url: Service URL
16+
:param Authentication creds: Authenticated credentials.
17+
"""
18+
19+
def __init__(self, base_url=None, creds=None):
20+
super(GitClient, self).__init__(base_url, creds)
21+
22+
def get_vsts_info(self, relative_remote_url):
23+
request = ClientRequest()
24+
request.url = self._client.format_url(relative_remote_url.rstrip('/') + '/vsts/info')
25+
request.method = 'GET'
26+
headers = {'Accept': 'application/json'}
27+
if self._suppress_fedauth_redirect:
28+
headers['X-TFS-FedAuthRedirect'] = 'Suppress'
29+
response = self._send_request(request, headers)
30+
return self._deserialize('VstsInfo', response)

vsts/vsts/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
VERSION = "0.1.1"
6+
VERSION = "0.1.2"

0 commit comments

Comments
 (0)