Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdebe41a

Browse files
author
Gauvain Pocentek
committed
Project.archive(): download tarball of the project
1 parent1cc7b17 commitdebe41a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎gitlab.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,16 @@ def blob(self, sha, filepath):
943943

944944
raiseGitlabGetError
945945

946+
defarchive(self,sha=None):
947+
url='/projects/%s/repository/archive'%self.id
948+
ifsha:
949+
url+='?sha=%s'%sha
950+
r=self.gitlab.rawGet(url)
951+
ifr.status_code==200:
952+
returnr.content
953+
954+
raiseGitlabGetError
955+
946956

947957
classTeamMember(GitlabObject):
948958
_url='/user_teams/%(team_id)s/members'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp