Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable downloading repository without git metadata #856

Closed
adammclaurin opened this issue Jan 18, 2021 · 2 comments · Fixed by #1177
Closed

Enable downloading repository without git metadata #856

adammclaurin opened this issue Jan 18, 2021 · 2 comments · Fixed by #1177

Comments

@adammclaurin
Copy link

For some lesser technical Jupyter users, all they want to do is grab a notebook created by someone else and just run it. The problem is that running a notebook changes the notebook file, which means that the lesser technical person will need to understand how to discard changes in order to obtain an updated notebook from the creator. It would be nice to support a "download" functionality that copies the git repo without the metadata to reduce how much the lesser technical person needs to understand. This is analogous to how the GitHub web interface has a "Clone or download" button.

@fcollonval
Copy link
Member

Xref: #998

The two issues are trying to address a similar use case. In #998, it goes a bit further by keeping the git link in order to get the notification that the upstream did change.

The main question here is how/where to store a parameter that will tell the extension it is in downloading mode.

@fcollonval
Copy link
Member

A good solution is the one propose there; aka

  1. Cloning the repository with depth option equals to 1
  2. Remove the .git repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants