Got it. Git does this by design -- see the excellent answer at https://bitbucket.org/site/master/issues/9243/git-acrhive-remote-does-not-work which links to the Git source code showing that Git only accepts refs (e.g. HEAD or branchname) here, not SHA1's. ᐧ
-- Need training on CFEngine, Git or Time Management? Email train...@verticalsysadmin.com. On Tue, Feb 21, 2017 at 10:24 PM, Ashwini <ashu.ravi...@gmail.com> wrote: > Hi Aleksey, > > We are trying the below command with hash id > > git archive --remote=git@<server_name:<repo_path> > a2501e8bea4b8fea43f55b780a692809207a0260 build/build.common > > > thanks > Ashwini > > On Tuesday, February 21, 2017 at 8:57:08 PM UTC+5:30, Aleksey Tsalolikhin > wrote: >> >> What is the command that you are running? >> >> I don't have any trouble with "git archive" but it doesn't try to upload >> anything: >> >> >> $ git archive -o latest.zip ae6c3bc47 >> $ ls -lh latest.zip >> -rw-rw-r-- 1 atsaloli atsaloli 1.1K Feb 21 07:23 latest.zip >> $ >> >> >> Best, >> Aleksey >> -- >> Need training on Git or GitLab CI? Email trai...@verticalsysadmin.com. >> >> >> On Tue, Feb 21, 2017 at 6:20 AM, Ashwini <ashu.r...@gmail.com> wrote: >> >>> Hi >>> >>> Does GitLab support git archive command with SHA id? Instead of refs ? >>> >>> when trying to get the data the error occurs: >>> >>> remote: fatal: no such ref: a2501e8bea4b8fea43f55b780a692809207a0260 >>> remote: git upload-archive: archiver died with error >>> fatal: sent error to the client: git upload-archive: archiver died with >>> error >>> >>> >>> where as the reference exist..!! >>> >>> Please help >>> >>> Regards >>> Ashwini >>> >>> -- >>> 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 gitlabhq+u...@googlegroups.com. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/gitlabhq/3576cabf-a78e-47bd-ace7-ec1a589fd8db%40googlegroups.com >>> <https://groups.google.com/d/msgid/gitlabhq/3576cabf-a78e-47bd-ace7-ec1a589fd8db%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> ᐧ >> > -- > 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 gitlabhq+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/gitlabhq/56e0b9a5-93ba-4116-977b-dad0dbcfc2ea%40googlegroups.com > <https://groups.google.com/d/msgid/gitlabhq/56e0b9a5-93ba-4116-977b-dad0dbcfc2ea%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/CANNWuVWGZoAPigj-Hry3qREshJhW03_BMBxATbnS2m4dB46ceg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.