diff --git a/lib/scm/gitfox.class.php b/lib/scm/gitfox.class.php index 553f58e9fa..be45b253a2 100644 --- a/lib/scm/gitfox.class.php +++ b/lib/scm/gitfox.class.php @@ -814,7 +814,12 @@ class gitfox */ public function getDownloadUrl($branch = 'master', $savePath = '', $ext = 'zip') { - return ''; + $params = array(); + $params['git_ref'] = $branch; + $params['format'] = $ext; + $params['access_token'] = $this->token; + + return "{$this->root}archive" . '?' . http_build_query($params); } /** diff --git a/module/repo/ui/browse.html.php b/module/repo/ui/browse.html.php index 544a884453..5447aca5c2 100644 --- a/module/repo/ui/browse.html.php +++ b/module/repo/ui/browse.html.php @@ -196,7 +196,7 @@ $downloadWg = div ) ) ) : null, - $repo->SCM == 'GitFox' ? null : div + div ( setStyle(array('margin-top' => '20px')), btn