Recent

Author Topic: git related http download mode  (Read 1982 times)

lagprogramming

  • Sr. Member
  • ****
  • Posts: 406
git related http download mode
« on: October 09, 2015, 02:03:56 pm »
   Is it possible to download an archive from the web(gitlab or github), in a way that the content of the archive doesn't start with project's name?
   A practical example:
   I'd like a download link like
"https://gitlab.com/mseide-msegui/mseide-msegui/repository/archive.zip?ref=master"
link that doesn't include project's files in a ${PROJECT_NAME}-${GIT_VERSION} directory.
   Is there any way a user can alter the download link of an archive file in order to avoid putting the content into a directory? Maybe by adding something after "...ref=master" in the gitlab's case?

mse

  • Sr. Member
  • ****
  • Posts: 286
Re: git related http download mode
« Reply #1 on: October 10, 2015, 08:37:31 am »
   Is it possible to download an archive from the web(gitlab or github), in a way that the content of the archive doesn't start with project's name?
I don't know, you probably should ask the GitLab people:
https://forum.gitlab.com/
https://groups.google.com/forum/#!forum/gitlabhq
http://feedback.gitlab.com/forums/176466-general
I don't know which is the best place.

Or use git:
https://git-scm.com/docs/git-archive
see --prefix and --remote parameters.

Or simply make a git clone which can be easily updated later:
"
cd <yourdirectory>
git clone https://gitlab.com/mseide-msegui/mseide-msegui.git .
"
in order to get MSEide+MSEgui and checkout master branch, please don't forget the '.' at the end.

Or use the provided zip's from the websites and set the unzip parameters accordingly in order to extract the subdirectory to the wanted destination.

Martin

 

TinyPortal © 2005-2018