forked from forgejo/forgejo
Add bundle download for repository (#14538)
* Add bundle download Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix build tags Signed-off-by: jolheiser <john.olheiser@gmail.com> * Download specific commit Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
d22cb600ed
commit
648464b504
83 changed files with 167 additions and 41 deletions
|
@ -21,6 +21,8 @@ const (
|
|||
ZIP ArchiveType = iota + 1
|
||||
// TARGZ tar gz archive type
|
||||
TARGZ
|
||||
// BUNDLE bundle archive type
|
||||
BUNDLE
|
||||
)
|
||||
|
||||
// String converts an ArchiveType to string
|
||||
|
@ -30,6 +32,8 @@ func (a ArchiveType) String() string {
|
|||
return "zip"
|
||||
case TARGZ:
|
||||
return "tar.gz"
|
||||
case BUNDLE:
|
||||
return "bundle"
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue