Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !5197

Closed
Created 11 years ago by Administrator@rootOwner
  • Report abuse
Report abuse

feature API call to download repo archive

  • Overview 10
  • Commits 1
  • Changes 3

Created by: karlhungus

defaults to HEAD

Conflicts: spec/requests/api/repositories_spec.rb

Change-Id: Id114aca6c59d75f18e49bf9f33809a04e010bfb6

Loading
Loading

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: coveralls

    Coverage Status

    Coverage decreased (-14.03%) when pulling 3fe5c3f0736b3e039849c210cec2cc2e547e1ebf on karlhungus:feature-api-download-archive into 052a7cc9 on gitlabhq:master.

    By Administrator on 2013-09-27T05:29:03 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: MrKeiKun

    hmmm

    file download on gzip or zip GROUP_PROJECT-cSHA-1.tar.gz.tar.gz remove duplicate tar.gz in filename

    By Administrator on 2013-09-27T08:54:22 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: karlhungus

    @MrKeiKun did actually you try this? i get something of the form <namespace>_<filename>-4a6e4cee6e00f918a7fa00fe25980c402d60341a.tar.gz. What tool/browser/os are you using (they might be appending the extra .tar.gz?

    By Administrator on 2013-09-27T13:30:06 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: MrKeiKun

    @karlhungus

    im using google chrome Windows8

    Screenshot rawr124

    By Administrator on 2013-09-27T13:48:28 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: karlhungus

    @MrKeiKun could you try firefox (i'll try chrome (linux/ff) here)

    By Administrator on 2013-09-27T13:48:13 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: karlhungus

    @MrKeiKun heh, chrome on linux ignores the content disposition and just calls it archive... I don't have a good solution for this other then putting in a 302 ala github's http://developer.github.com/v3/repos/contents/#get-archive-link. In someways this makes sense. There is another issue with this PR - that these tmp dir's don't seem to get cleaned up (i could be wrong about this).

    By Administrator on 2013-09-27T13:52:17 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: MrKeiKun

    @karlhungus

    looks fine on firefox

    By Administrator on 2013-09-27T14:49:00 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: karlhungus

    @MrKeiKun that header "Content-Disposition:"," infile; filename=\"#{File.basename(file_path)}\"" I added isn't necessarily the best solution (it isn't respected (obviously) by all browsers); it was just an easier solution. I'm actually a little bit ok with sometimes people getting archive, or .tar.gz.tar.gz, If this isn't a reasonable solution for @randx etc I can change this to use the 302 method ala github.

    By Administrator on 2013-09-27T15:59:59 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: coveralls

    Coverage Status

    Coverage remained the same when pulling aebe20de on karlhungus:feature-api-download-archive into e219cf72 on gitlabhq:master.

    By Administrator on 2013-10-01T14:35:03 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: karlhungus

    I've discovered a bug in this, closing until i fix it.

    By Administrator on 2013-10-01T20:13:10 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
0 Reviewers
Request review from
Milestone
No milestone
None
None
Time tracking
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
participants
Reference:
Source branch: github/fork/karlhungus/feature-api-download-archive

    0 pending comments