Hi,
Can you try with just http not https and -L argument, if you know how
to pass cacert file then you can use https, the below command worked for me.
*curl -L http://<our gitlab server>/<user>/<repositoy
name>/repository/archive.tar.*
*gz?ref=<tag>&private_token=<**private token>*
On Thursday, April 16, 2015 at 8:27:34 PM UTC+5:30, [email protected]
wrote:
>
> Hi there,
>
> we have a private repository on our local gitlab with tags to specific
> branches. Sometimes we want to download the tar.gz file from a tag on a
> remote server through curl (on a compute node in a scientific cluster that
> will handle our jobs)
> Is this possible via the API without having to make our project public?
>
> We have tried using private tokens with curl: curl https://<our gitlab
> server>/<user>/<repositoy
> name>/repository/archive.tar.gz?ref=<tag>&private_token=<private token>
> but we get the message "You need to sign in before continuing.".
>
> Any idea how to do this?
>
> (gitlab 7.4.3)
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/gitlabhq/65347770-3a17-4094-b526-0c04e6ffb63f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.